Fixed the Cython extensions gen script so that it works on Snow Leopard (what the heck is *up* with SL? Can't compile crap).

--HG--
extra : convert_revision : svn%3Ac306627e-7827-47d3-bdf0-9a457c9553a1/trunk%40115
This commit is contained in:
hsoft 2009-09-02 15:35:01 +00:00
parent 497a29118a
commit 536c43006d
1 changed files with 3 additions and 3 deletions

View File

@ -19,11 +19,11 @@ def move(src, dst):
print 'Moving %s --> %s' % (src, dst)
os.rename(src, dst)
# The CC=gcc-4.0 thing is because, in Snow Leopard, gcc-4.2 can't compile these units.
os.chdir(op.join('modules', 'block'))
os.system('python setup.py build_ext --inplace')
os.system('CC=gcc-4.0;python setup.py build_ext --inplace')
os.chdir(op.join('..', 'cache'))
os.system('python setup.py build_ext --inplace')
os.system('CC=gcc-4.0;python setup.py build_ext --inplace')
os.chdir(op.join('..', '..'))
move(op.join('modules', 'block', '_block.so'), '_block.so')
move(op.join('modules', 'block', '_block.pyd'), '_block.pyd')