Changed the PE gen script so it works on windows.

--HG--
extra : convert_revision : svn%3Ac306627e-7827-47d3-bdf0-9a457c9553a1/trunk%40125
This commit is contained in:
hsoft 2009-09-06 12:25:49 +00:00
parent b5b86bd89d
commit eea31b3c3f
1 changed files with 3 additions and 2 deletions

View File

@ -20,10 +20,11 @@ def move(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.environ['CC'] = 'gcc-4.0'
os.chdir(op.join('modules', 'block'))
os.system('CC=gcc-4.0;python setup.py build_ext --inplace')
os.system('python setup.py build_ext --inplace')
os.chdir(op.join('..', 'cache'))
os.system('CC=gcc-4.0;python setup.py build_ext --inplace')
os.system('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')