We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 977424c commit 794ccf3Copy full SHA for 794ccf3
1 file changed
setup.py
@@ -1,10 +1,24 @@
1
#!/usr/bin/env python
2
# -*- coding: utf-8 -*-
3
import os
4
-from setuptools import setup
5
-
6
from github_backup import __version__
7
+try:
+ from setuptools import setup
8
+ setup # workaround for pyflakes issue #13
9
+except ImportError:
10
+ from distutils.core import setup
11
+
12
+# Hack to prevent stupid TypeError: 'NoneType' object is not callable error on
13
+# exit of python setup.py test # in multiprocessing/util.py _exit_function when
14
+# running python setup.py test (see
15
+# http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html)
16
17
+ import multiprocessing
18
+ multiprocessing
19
20
+ pass
21
22
23
def open_file(fname):
24
return open(os.path.join(os.path.dirname(__file__), fname))
0 commit comments