summaryrefslogtreecommitdiff
path: root/dev-python/appdirs/files/appdirs-1.4.3-distutils.patch
blob: e5245f255fefa8d8630ca6dbbf303098f7864a95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Force setup.py to use distutils in order to break setuptools cyclic dependency.

--- 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',
-    tests_require=tests_require,
     keywords='application directory log cache user',
     author='Trent Mick',
     author_email='trentm@gmail.com',