Closed GoogleCodeExporter closed 8 years ago
This patch seems to address the issue and now the library builds.
Original comment by jaraco%jaraco.com@gtempaccount.com
on 7 Jul 2010 at 6:55
PS C:\Users\jaraco\projects\public\pybluez> svn diff
Index: setup.py
===================================================================
--- setup.py (revision 40)
+++ setup.py (working copy)
@@ -3,6 +3,7 @@
from distutils.core import setup, Extension
from distutils.debug import DEBUG
import sys
+import platform
import os
mods = []
@@ -18,10 +19,13 @@
break
if PSDK_PATH is None:
raise SystemExit ("Can't find the Windows XP Platform SDK")
-
+
+ lib_path = os.path.join(PSDK_PATH, 'Lib')
+ if '64' in platform.architecture()[0]:
+ lib_path = os.path.join(lib_path, 'x64')
mod1 = Extension ('bluetooth._msbt',
include_dirs = ["%s\\Include" % PSDK_PATH],
- library_dirs = ["%s\\Lib" % PSDK_PATH],
+ library_dirs = [lib_path],
libraries = [ "WS2_32", "Irprops" ],
sources=['msbt\\_msbt.c'],)
mods = [ mod1 ]
Original comment by jaraco%jaraco.com@gtempaccount.com
on 7 Jul 2010 at 6:55
Thanks for the patch. You should have commit access now -- please commit it.
Original comment by ashu...@gmail.com
on 7 Jul 2010 at 1:50
Added to trunk r41.
Original comment by jaraco%jaraco.com@gtempaccount.com
on 7 Jul 2010 at 2:32
Original issue reported on code.google.com by
jaraco%jaraco.com@gtempaccount.com
on 7 Jul 2010 at 6:21