get_rid_of_pip.patch 538 B

1234567891011121314151617181920
  1. --- setup_old.py 2017-02-01 15:02:25.088620379 +0300
  2. +++ setup.py 2017-02-01 15:10:53.517611419 +0300
  3. @@ -5,16 +5,8 @@
  4. import os
  5. import sys
  6. -import pip
  7. -
  8. from setuptools import setup, find_packages
  9. -if 'docker-py' in [x.project_name for x in pip.get_installed_distributions()]:
  10. - print(
  11. - 'ERROR: "docker-py" needs to be uninstalled before installing this'
  12. - ' package:\npip uninstall docker-py', file=sys.stderr
  13. - )
  14. - sys.exit(1)
  15. ROOT_DIR = os.path.dirname(__file__)
  16. SOURCE_DIR = os.path.join(ROOT_DIR)