build windows python bindings with geoip support. fixes some warnings in msvc
This commit is contained in:
@@ -30,7 +30,7 @@ def arch():
|
||||
if platform.system() == 'Windows':
|
||||
# on windows, build using bjam and build an installer
|
||||
import shutil
|
||||
if os.system('bjam boost=source link=static boost-link=static release msvc-7.1 optimization=space') != 0:
|
||||
if os.system('bjam boost=source link=static geoip=static boost-link=static release msvc-7.1 optimization=space') != 0:
|
||||
print 'build failed'
|
||||
sys.exit(1)
|
||||
try: os.mkdir(r'build')
|
||||
@@ -39,7 +39,7 @@ if platform.system() == 'Windows':
|
||||
except: pass
|
||||
try: os.mkdir(r'libtorrent')
|
||||
except: pass
|
||||
shutil.copyfile(r'bin\msvc-7.1\release\boost-source\link-static\optimization-space\threading-multi\libtorrent.pyd', r'.\build\lib\libtorrent.pyd')
|
||||
shutil.copyfile(r'bin\msvc-7.1\release\boost-source\geoip-static\link-static\optimization-space\threading-multi\libtorrent.pyd', r'.\build\lib\libtorrent.pyd')
|
||||
setup( name='python-libtorrent',
|
||||
version='@PACKAGE_VERSION@',
|
||||
author = 'Arvid Norberg',
|
||||
|
Reference in New Issue
Block a user