dev-python/appdirs: fix distutils patch

Bug: https://bugs.gentoo.org/627724
Package-Manager: Portage-2.3.15, Repoman-2.3.6_p7
This commit is contained in:
Mike Gilbert
2017-12-05 17:17:22 -05:00
parent 3a206e3e1e
commit 5cf82d83f6
2 changed files with 18 additions and 6 deletions

View File

@@ -1,9 +1,21 @@
Force setup.py to use distutils in order to break setuptools cyclic dependency.
--- appdirs-1.4.0/setup.py
+++ appdirs-1.4.0/setup.py
@@ -38,8 +38,6 @@
Programming Language :: Python :: 3.2
--- a/setup.py
+++ b/setup.py
@@ -3,10 +3,7 @@
import os
import os.path
# appdirs is a dependency of setuptools, so allow installing without it.
-try:
- from setuptools import setup
-except ImportError:
- from distutils.core import setup
+from distutils.core import setup
import appdirs
tests_require = []
@@ -45,8 +42,6 @@
Programming Language :: Python :: Implementation :: CPython
Topic :: Software Development :: Libraries :: Python Modules
""".split('\n') if c.strip()],
- test_suite='test.test_api',