mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
Fixed cocoa build script to work with Python 3.3.
This commit is contained in:
parent
5da793b029
commit
f49c7dee96
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import sys
|
||||||
import os
|
import os
|
||||||
import os.path as op
|
import os.path as op
|
||||||
|
|
||||||
@ -25,8 +26,9 @@ def configure(conf):
|
|||||||
# I did a lot of fiddling-around, but I didn't find how to tell WAF the Python library name
|
# I did a lot of fiddling-around, but I didn't find how to tell WAF the Python library name
|
||||||
# to look for without making the whole compilation process fail, so I just create a symlink
|
# to look for without making the whole compilation process fail, so I just create a symlink
|
||||||
# with the name WAF is looking for.
|
# with the name WAF is looking for.
|
||||||
if not op.exists('../build/libpython3.2.dylib'):
|
versioned_dylib_path = '../build/libpython{}.dylib'.format(sys.version[:3])
|
||||||
os.symlink('../build/Python', '../build/libpython3.2.dylib')
|
if not op.exists(versioned_dylib_path):
|
||||||
|
os.symlink('../build/Python', versioned_dylib_path)
|
||||||
# The rest is standard WAF code that you can find the the python and macapp demos.
|
# The rest is standard WAF code that you can find the the python and macapp demos.
|
||||||
conf.load('compiler_c python')
|
conf.load('compiler_c python')
|
||||||
conf.check_python_version((3,2,0))
|
conf.check_python_version((3,2,0))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user