forked from premiere/premiere-libtorrent
made windows build of python bindings optimize for space
This commit is contained in:
parent
8e48e81ead
commit
ea7715988c
|
@ -24,7 +24,7 @@ if platform.system() == 'Windows':
|
||||||
# on windows, build using bjam and build an installer
|
# on windows, build using bjam and build an installer
|
||||||
import shutil
|
import shutil
|
||||||
import sys
|
import sys
|
||||||
if os.system('bjam boost=source link=static boost-link=static release msvc-7.1') != 0:
|
if os.system('bjam boost=source link=static boost-link=static release msvc-7.1 optimization=space') != 0:
|
||||||
print 'build failed'
|
print 'build failed'
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
try: os.mkdir(r'build')
|
try: os.mkdir(r'build')
|
||||||
|
@ -33,7 +33,7 @@ if platform.system() == 'Windows':
|
||||||
except: pass
|
except: pass
|
||||||
try: os.mkdir(r'libtorrent')
|
try: os.mkdir(r'libtorrent')
|
||||||
except: pass
|
except: pass
|
||||||
shutil.copyfile(r'bin\msvc-7.1\release\boost-source\link-static\threading-multi\libtorrent.pyd', r'.\build\lib\libtorrent.pyd')
|
shutil.copyfile(r'bin\msvc-7.1\release\boost-source\link-static\optimization-space\threading-multi\libtorrent.pyd', r'.\build\lib\libtorrent.pyd')
|
||||||
setup( name='python-libtorrent',
|
setup( name='python-libtorrent',
|
||||||
version='@PACKAGE_VERSION@',
|
version='@PACKAGE_VERSION@',
|
||||||
author = 'Arvid Norberg',
|
author = 'Arvid Norberg',
|
||||||
|
|
Loading…
Reference in New Issue