gentoo/dev-python/packaging/files/packaging-15.3-setuptools.patch
Justin Lecher a64b133d87
dev-python/packaging: Allow installation without setuptools
Package-Manager: portage-2.2.20.1
Signed-off-by: Justin Lecher <jlec@gentoo.org>
2015-08-28 08:40:02 +02:00

31 lines
666 B
Diff

setup.py | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/setup.py b/setup.py
index 13c9dad..9d68590 100644
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,12 @@
from __future__ import absolute_import, division, print_function
import os
-import setuptools
+
+try:
+ from setuptools import setup
+except ImportError:
+ from distutils.core import setup
+
base_dir = os.path.dirname(__file__)
@@ -31,7 +36,7 @@ with open(os.path.join(base_dir, "CHANGELOG.rst")) as f:
long_description = "\n".join([long_description, f.read()])
-setuptools.setup(
+setup(
name=about["__title__"],
version=about["__version__"],