diff --git a/pe/py/gen.py b/pe/py/gen.py index bf3ebb12..37a5a422 100644 --- a/pe/py/gen.py +++ b/pe/py/gen.py @@ -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')