0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-24 01:57:32 +01:00

Disable parallel builds to avoid issue with Pillow 2.5 monkeypatching the build process

This commit is contained in:
Matt Westcott 2014-09-10 17:37:57 +01:00
parent 24aefc417b
commit 4d5570bea6

View File

@ -1,6 +1,6 @@
#!/usr/bin/env python #!/usr/bin/env python
import sys import sys, os
try: try:
@ -9,16 +9,19 @@ except ImportError:
from distutils.core import setup from distutils.core import setup
# Hack to prevent stupid TypeError: 'NoneType' object is not callable error on # Hack to prevent "TypeError: 'NoneType' object is not callable" error
# exit of python setup.py test # in multiprocessing/util.py _exit_function when # in multiprocessing/util.py _exit_function when setup.py exits
# running python setup.py test (see # (see http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html)
# http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html)
try: try:
import multiprocessing import multiprocessing
except ImportError: except ImportError:
pass pass
# Disable parallel builds, because Pillow 2.5.3 does some crazy monkeypatching of
# the build process on multicore systems, which breaks installation of libsass
os.environ['MAX_CONCURRENCY'] = '1'
PY3 = sys.version_info[0] == 3 PY3 = sys.version_info[0] == 3