Skip to content

Commit

Permalink
Merge pull request pypa#259 from msabramo/fix-setup.py-test-atexit-error
Browse files Browse the repository at this point in the history
Hack to prevent stupid "TypeError: 'NoneType' object is not callable" error on exit of `python setup.py test`
  • Loading branch information
ianb committed May 1, 2012
2 parents fbee7cc + ddd0aa0 commit b8249d0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@
long_description += "\n\n" + f.read()
f.close()


# Hack to prevent stupid TypeError: 'NoneType' object is not callable error on
# exit of python setup.py test # in multiprocessing/util.py _exit_function when
# running python setup.py test (see
# http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html)
try:
import multiprocessing
except ImportError:
pass

setup(name='virtualenv',
# If you change the version here, change it in virtualenv.py and
# docs/conf.py as well
Expand Down

0 comments on commit b8249d0

Please sign in to comment.