52 lines
2.4 KiB
Diff
52 lines
2.4 KiB
Diff
diff -Naur a/setup.py b/setup.py
|
|
--- a/setup.py 2014-02-18 09:33:23.460200000 +0400
|
|
+++ b/setup.py 2014-02-18 09:33:23.585000000 +0400
|
|
@@ -375,7 +375,7 @@
|
|
# Debian/Ubuntu multiarch support.
|
|
# https://wiki.ubuntu.com/MultiarchSpec
|
|
cc = sysconfig.get_config_var('CC')
|
|
- tmpfile = os.path.join(self.build_temp, 'multiarch')
|
|
+ tmpfile = os.path.join(self.build_temp, 'multiarch').replace('\\','/')
|
|
if not os.path.exists(self.build_temp):
|
|
os.makedirs(self.build_temp)
|
|
ret = os.system(
|
|
@@ -400,7 +400,7 @@
|
|
opt = ''
|
|
if cross_compiling:
|
|
opt = '-t' + sysconfig.get_config_var('HOST_GNU_TYPE')
|
|
- tmpfile = os.path.join(self.build_temp, 'multiarch')
|
|
+ tmpfile = os.path.join(self.build_temp, 'multiarch').replace('\\','/')
|
|
if not os.path.exists(self.build_temp):
|
|
os.makedirs(self.build_temp)
|
|
ret = os.system(
|
|
@@ -419,7 +419,7 @@
|
|
|
|
def add_gcc_paths(self):
|
|
gcc = sysconfig.get_config_var('CC')
|
|
- tmpfile = os.path.join(self.build_temp, 'gccpaths')
|
|
+ tmpfile = os.path.join(self.build_temp, 'gccpaths').replace('\\','/')
|
|
if not os.path.exists(self.build_temp):
|
|
os.makedirs(self.build_temp)
|
|
ret = os.system('%s -E -v - </dev/null 2>%s 1>/dev/null' % (gcc, tmpfile))
|
|
@@ -871,7 +871,7 @@
|
|
opensslv_h = find_file('openssl/opensslv.h', [],
|
|
inc_dirs + search_for_ssl_incs_in)
|
|
if opensslv_h:
|
|
- name = os.path.join(opensslv_h[0], 'openssl/opensslv.h')
|
|
+ name = os.path.join(opensslv_h[0], 'openssl/opensslv.h').replace('\\','/')
|
|
if host_platform == 'darwin' and is_macosx_sdk_path(name):
|
|
name = os.path.join(macosx_sdk_root(), name[1:])
|
|
try:
|
|
@@ -1900,9 +1900,9 @@
|
|
archs = re.findall('-arch\s+(\w+)', cflags)
|
|
|
|
if is_macosx_sdk_path(F):
|
|
- fp = os.popen("file %s/Tk.framework/Tk | grep 'for architecture'"%(os.path.join(sysroot, F[1:]),))
|
|
+ fp = os.popen("file %s/Tk.framework/Tk | grep 'for architecture'"%(os.path.join(sysroot, F[1:]).replace('\\','/'),))
|
|
else:
|
|
- fp = os.popen("file %s/Tk.framework/Tk | grep 'for architecture'"%(F,))
|
|
+ fp = os.popen("file %s/Tk.framework/Tk | grep 'for architecture'"%(F.replace('\\','/'),))
|
|
|
|
detected_archs = []
|
|
for ln in fp:
|