Skip to content

Commit

Permalink
workaround a python bug
Browse files Browse the repository at this point in the history
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 <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
  • Loading branch information
yamt authored and fujita committed Sep 2, 2013
1 parent 205485e commit ada18ba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# a bug workaround. http://bugs.python.org/issue15881
try:
import multiprocessing
except ImportError:
pass

import setuptools
import os

Expand Down

0 comments on commit ada18ba

Please sign in to comment.