ports/net-p2p/py-libtorrent-rasterbar/files/patch-setup.py
Yuri Victorovich f9c8fec623 Move net-p2p/libtorrent-rasterbar-python -> net-p2p/py-libtorrent-rasterbar
It now builds for all versions of python.
2018-10-06 20:31:52 +00:00

17 lines
731 B
Python

--- setup.py.orig 2018-10-06 18:51:57 UTC
+++ setup.py
@@ -131,11 +131,11 @@ else:
source_list = os.listdir(os.path.join(os.path.dirname(__file__), "src"))
source_list = [os.path.abspath(os.path.join(os.path.dirname(__file__), "src", s)) for s in source_list if s.endswith(".cpp")]
- if extra_cmd:
+ if True or extra_cmd:
flags = flags_parser()
# ldflags must be parsed first to ensure the correct library search path order
- extra_link = flags.parse(ldflags)
- extra_compile = flags.parse(extra_cmd)
+ extra_link = flags.parse(os.environ['LDFLAGS'])
+ extra_compile = flags.parse(os.environ['CFLAGS'])
# for some reason distutils uses the CC environment variable to determine
# the compiler to use for C++