void-packages/srcpkgs/python-docker/patches/no-pip.patch

21 lines
541 B
Diff
Raw Normal View History

2017-04-21 15:41:46 +02:00
--- setup.py.orig 2017-01-20 03:12:21.000000000 +0100
+++ setup.py 2017-04-21 12:39:13.784172057 +0200
@@ -5,17 +5,8 @@
import os
import sys
-import pip
-
from setuptools import setup, find_packages
-if 'docker-py' in [x.project_name for x in pip.get_installed_distributions()]:
- print(
- 'ERROR: "docker-py" needs to be uninstalled before installing this'
- ' package:\npip uninstall docker-py', file=sys.stderr
- )
- sys.exit(1)
-
ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)