mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 00:28:09 -07:00
dev-python/packaging: Allow installation without setuptools
Package-Manager: portage-2.2.20.1 Signed-off-by: Justin Lecher <jlec@gentoo.org>
This commit is contained in:
30
dev-python/packaging/files/packaging-15.3-setuptools.patch
Normal file
30
dev-python/packaging/files/packaging-15.3-setuptools.patch
Normal file
@@ -0,0 +1,30 @@
|
||||
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__"],
|
||||
|
||||
Reference in New Issue
Block a user