fix python build with CC/CXX environment

This commit is contained in:
arvidn 2016-12-07 20:09:57 -05:00 committed by Arvid Norberg
parent 5d0322d393
commit a39f3714b2
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,4 @@
* fix python build with CC/CXX environment
* add trackers from add_torrent_params/magnet links to separate tiers
* fix resumedata check issue with files with priority 0
* deprecated mmap_cache feature

View File

@ -116,6 +116,13 @@ else:
extra_link = flags.parse(ldflags)
extra_compile = flags.parse(extra_cmd)
# for some reason distutils uses the CC environment variable to determine
# the compiler to use for C++
if 'CXX' in os.environ:
os.environ['CC'] = os.environ['CXX']
if 'CXXFLAGS' in os.environ:
os.environ['CFLAGS'] = os.environ['CXXFLAGS']
ext = [Extension('libtorrent',
sources = source_list,
language='c++',