old_contents: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  
  from setuptools import setup, find_packages
  import setuptools.command.build_ext as _build_ext
  import sys
  import platform
  import pip
  
  python_version = platform.python_version()[:3]
  
  ray_whl = "ray"  # Fall back on pip install if no relevant wheel exists
  ray_whl_prefix = "https://s3-us-west-2.amazonaws.com/ray-wheels/latest/"
  if sys.platform.startswith('linux'):
      if python_version == "2.7":
          ray_whl = ray_whl_prefix + \
              "ray-0.4.0-cp27-cp27mu-manylinux1_x86_64.whl"
      elif python_version == "3.3":
          ray_whl = ray_whl_prefix + "ray-0.4.0-cp33-cp33m-manylinux1_x86_64.whl"
      elif python_version == "3.4":
          ray_whl = ray_whl_prefix + "ray-0.4.0-cp34-cp34m-manylinux1_x86_64.whl"
      elif python_version == "3.5":
          ray_whl = ray_whl_prefix + "ray-0.4.0-cp35-cp35m-manylinux1_x86_64.whl"
      elif python_version == "3.6":
          ray_whl = ray_whl_prefix + "ray-0.4.0-cp36-cp36m-manylinux1_x86_64.whl"
  elif sys.platform == "darwin":
      if python_version == "2.7":
          ray_whl = ray_whl_prefix + "ray-0.4.0-cp27-cp27m-macosx_10_6_intel.whl"
      elif python_version == "3.4":
          ray_whl = ray_whl_prefix + "ray-0.4.0-cp34-cp34m-macosx_10_6_intel.whl"
      elif python_version == "3.5":
          ray_whl = ray_whl_prefix + "ray-0.4.0-cp35-cp35m-macosx_10_6_intel.whl"
      elif python_version == "3.6":
          ray_whl = ray_whl_prefix + "ray-0.4.0-cp36-cp36m-macosx_10_6_intel.whl"
  
  
  class build_ext(_build_ext.build_ext):
      def run(self):
          pip.main(['install', ray_whl])
  
  
  setup(
      name="modin",
      version="0.0.2",
      description="Modin: Pandas on Ray - Make your pandas code run faster with "
                  "a single line of code change.",
      packages=find_packages(),
      cmdclass={"build_ext": build_ext},
      url="https://github.com/modin-project/modin",
      install_requires=["pandas==0.22"])
  
new_contents: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  
  from setuptools import setup, find_packages
  import setuptools.command.build_ext as _build_ext
  import sys
  import platform
  import pip
  
  pip_major = int(pip.__version__.split(".")[0])
  if pip_major < 10:
      # https://github.com/pypa/pip/issues/5240
      from pip import main
  else:
      from pip._internal import main
  
  python_version = platform.python_version()[:3]
  
  ray_whl = "ray"  # Fall back on pip install if no relevant wheel exists
  ray_whl_prefix = "https://s3-us-west-2.amazonaws.com/ray-wheels/latest/"
  if sys.platform.startswith('linux'):
      if python_version == "2.7":
          ray_whl = ray_whl_prefix + \
              "ray-0.4.0-cp27-cp27mu-manylinux1_x86_64.whl"
      elif python_version == "3.3":
          ray_whl = ray_whl_prefix + "ray-0.4.0-cp33-cp33m-manylinux1_x86_64.whl"
      elif python_version == "3.4":
          ray_whl = ray_whl_prefix + "ray-0.4.0-cp34-cp34m-manylinux1_x86_64.whl"
      elif python_version == "3.5":
          ray_whl = ray_whl_prefix + "ray-0.4.0-cp35-cp35m-manylinux1_x86_64.whl"
      elif python_version == "3.6":
          ray_whl = ray_whl_prefix + "ray-0.4.0-cp36-cp36m-manylinux1_x86_64.whl"
  elif sys.platform == "darwin":
      if python_version == "2.7":
          ray_whl = ray_whl_prefix + "ray-0.4.0-cp27-cp27m-macosx_10_6_intel.whl"
      elif python_version == "3.4":
          ray_whl = ray_whl_prefix + "ray-0.4.0-cp34-cp34m-macosx_10_6_intel.whl"
      elif python_version == "3.5":
          ray_whl = ray_whl_prefix + "ray-0.4.0-cp35-cp35m-macosx_10_6_intel.whl"
      elif python_version == "3.6":
          ray_whl = ray_whl_prefix + "ray-0.4.0-cp36-cp36m-macosx_10_6_intel.whl"
  
  
  class build_ext(_build_ext.build_ext):
      def run(self):
          main(['install', ray_whl])
  
  
  setup(
      name="modin",
      version="0.0.2",
      description="Modin: Pandas on Ray - Make your pandas code run faster with "
                  "a single line of code change.",
      packages=find_packages(),
      cmdclass={"build_ext": build_ext},
      url="https://github.com/modin-project/modin",
      install_requires=["pandas==0.22"])
  
subject: Make setup.py compatible with pip version 10 (#9)