Skip to content

Commit ada18ba

Browse files
yamtfujita
authored andcommitted
workaround a python bug
without this patch, "python ./setup.py install" produced the following errors with python 2.7.3 on ubuntu 12.04. Error in sys.exitfunc: Traceback (most recent call last): File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs func(*targs, **kargs) File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs func(*targs, **kargs) File "/usr/lib/python2.7/multiprocessing/util.py", line 284, in _exit_function info('process shutting down') TypeError: 'NoneType' object is not callable Signed-off-by: YAMAMOTO Takashi <[email protected]> Signed-off-by: FUJITA Tomonori <[email protected]>
1 parent 205485e commit ada18ba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

setup.py

+6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
# a bug workaround. http://bugs.python.org/issue15881
18+
try:
19+
import multiprocessing
20+
except ImportError:
21+
pass
22+
1723
import setuptools
1824
import os
1925

0 commit comments

Comments
 (0)