Skip to content

Commit 1fc32af

Browse files
Alexpuxlazkanaveen521kk
committed
msys replace slashes used in io redirection
Co-authored-by: Алексей <[email protected]> Co-authored-by: Christoph Reiter <[email protected]> Co-authored-by: Naveen M K <[email protected]>
1 parent 677b45e commit 1fc32af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ def check_extension_import(self, ext):
698698
def add_multiarch_paths(self):
699699
# Debian/Ubuntu multiarch support.
700700
# https://wiki.ubuntu.com/MultiarchSpec
701-
tmpfile = os.path.join(self.build_temp, 'multiarch')
701+
tmpfile = os.path.join(self.build_temp, 'multiarch').replace('\\','/')
702702
if not os.path.exists(self.build_temp):
703703
os.makedirs(self.build_temp)
704704
ret = run_command(
@@ -723,7 +723,7 @@ def add_multiarch_paths(self):
723723
opt = ''
724724
if CROSS_COMPILING:
725725
opt = '-t' + sysconfig.get_config_var('HOST_GNU_TYPE')
726-
tmpfile = os.path.join(self.build_temp, 'multiarch')
726+
tmpfile = os.path.join(self.build_temp, 'multiarch').replace('\\','/')
727727
if not os.path.exists(self.build_temp):
728728
os.makedirs(self.build_temp)
729729
ret = run_command(
@@ -785,7 +785,7 @@ def add_search_path(line):
785785
pass
786786

787787
def add_cross_compiling_paths(self):
788-
tmpfile = os.path.join(self.build_temp, 'ccpaths')
788+
tmpfile = os.path.join(self.build_temp, 'ccpaths').replace('\\','/')
789789
if not os.path.exists(self.build_temp):
790790
os.makedirs(self.build_temp)
791791
# bpo-38472: With a German locale, GCC returns "gcc-Version 9.1.0
@@ -1053,7 +1053,7 @@ def detect_readline_curses(self):
10531053
readline_termcap_library = ""
10541054
curses_library = ""
10551055
# Cannot use os.popen here in py3k.
1056-
tmpfile = os.path.join(self.build_temp, 'readline_termcap_lib')
1056+
tmpfile = os.path.join(self.build_temp, 'readline_termcap_lib').replace('\\','/')
10571057
if not os.path.exists(self.build_temp):
10581058
os.makedirs(self.build_temp)
10591059
# Determine if readline is already linked against curses or tinfo.

0 commit comments

Comments
 (0)