more setup.py fixed for windows build
This commit is contained in:
parent
86f2365be4
commit
0836ceec0b
|
@ -23,12 +23,17 @@ def arch():
|
|||
if platform.system() == 'Windows':
|
||||
# on windows, build using bjam and build an installer
|
||||
import shutil
|
||||
os.system('bjam boost=source link=static boost-link=static release msvc-7.1')
|
||||
try:
|
||||
os.mkdir(r'libtorrent')
|
||||
except:
|
||||
pass
|
||||
shutil.copyfile(r'bin\msvc-7.1\release\boost-source\link-static\threading-multi\libtorrent.pyd', r'.\libtorrent\libtorrent.pyd')
|
||||
import sys
|
||||
if os.system('bjam boost=source link=static boost-link=static release msvc-7.1') != 0:
|
||||
print 'build failed'
|
||||
sys.exit(1)
|
||||
try: os.mkdir(r'build')
|
||||
except: pass
|
||||
try: os.mkdir(r'build\lib')
|
||||
except: pass
|
||||
try: os.mkdir(r'libtorrent')
|
||||
except: pass
|
||||
shutil.copyfile(r'bin\msvc-7.1\release\boost-source\link-static\threading-multi\libtorrent.pyd', r'.\build\lib\libtorrent.pyd')
|
||||
setup( name='python-libtorrent',
|
||||
version='@PACKAGE_VERSION@',
|
||||
author = 'Arvid Norberg',
|
||||
|
@ -39,8 +44,6 @@ if platform.system() == 'Windows':
|
|||
platforms = 'Windows',
|
||||
license = 'Boost Software License - Version 1.0 - August 17th, 2003',
|
||||
packages = ['libtorrent'],
|
||||
package_data = {'.': [r'libtorrent.pyd']},
|
||||
package_dir={'.': 'libtorrent'}
|
||||
)
|
||||
sys.exit(0)
|
||||
|
||||
|
|
Loading…
Reference in New Issue