Commits
David B. Evans authored c65695e00bd
1 - | --- bindings/python/setup.py.orig 2016-04-10 17:46:51.000000000 -0700 |
2 - | +++ bindings/python/setup.py 2016-04-15 13:53:34.000000000 -0700 |
3 - | |
4 - | |
5 - | def arch(): |
6 - | if platform.system() != 'Darwin': return [] |
7 - | - a = os.uname()[4] |
8 - | - if a == 'Power Macintosh': a = 'ppc' |
9 - | + a = '__MP_BUILD_ARCH__' |
10 - | return ['-arch', a] |
11 - | |
12 - | def target_specific(): |
13 - | |
14 - | # on mavericks, clang will fail when unknown arguments are |
15 - | # passed in. python distutils will pass in arguments it doesn't |
16 - | # know about |
17 - | - return ['-Wno-error=unused-command-line-argument-hard-error-in-future'] |
18 - | + return [] |
19 - | |
20 - | try: |
21 - | with open('compile_flags') as _file: |
22 - | |
23 - | language='c++', |
24 - | include_dirs = flags.include_dirs, |
25 - | library_dirs = flags.library_dirs, |
26 - | - extra_link_args = extra_link + arch(), |
27 - | - extra_compile_args = extra_compile + arch() + target_specific(), |
28 - | + extra_link_args = extra_link, |
29 - | + extra_compile_args = extra_compile + target_specific(), |
30 - | libraries = ['torrent-rasterbar'] + flags.libraries)] |
31 - | |
32 - | setup(name = 'python-libtorrent', |