updated setup.py to use msvc 9.0 (2008)

This commit is contained in:
Arvid Norberg 2010-08-04 17:07:01 +00:00
parent fd5f1bf80b
commit 0800513b2d
2 changed files with 4 additions and 1 deletions

View File

@ -40,6 +40,7 @@
incoming connection
* added more detailed instrumentation of the disk I/O thread
* updated compiler to msvc 2008 for python binding
* restored default fail_limit to unlimited on all trackers
* fixed rate limit bug for DHT
* fixed SOCKS5 bug for routing UDP packets

View File

@ -30,7 +30,9 @@ 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 geoip=static boost-link=static release msvc-7.1 optimization=space') != 0:
# msvc 9.0 (2008) is the official windows compiler for python 2.6
# http://docs.python.org/whatsnew/2.6.html#build-and-c-api-changes
if os.system('bjam boost=source link=static geoip=static boost-link=static release msvc-9.0 optimization=space') != 0:
print 'build failed'
sys.exit(1)
try: os.mkdir(r'build')