mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-02-09 01:27:34 -08:00
31 lines
666 B
Diff
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__"],
|
|
|