File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22# -*- coding: utf-8 -*-
33import os
4- from setuptools import setup
5-
64from github_backup import __version__
75
6+ try :
7+ 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+ try :
17+ import multiprocessing
18+ multiprocessing
19+ except ImportError :
20+ pass
21+
822
923def open_file (fname ):
1024 return open (os .path .join (os .path .dirname (__file__ ), fname ))
You can’t perform that action at this time.
0 commit comments