Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce9f5ac

Browse files
committed
BUG: we were protecting c++ and fortran compiler path twice, which made scons interpret the path as target.
1 parent 680190a commit ce9f5ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

numpy/distutils/command/scons.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,12 +502,12 @@ def run(self):
502502
if self.scons_fcompiler:
503503
cmd.append('f77_opt=%s' % self.scons_fcompiler)
504504
if self.scons_fcompiler_path:
505-
cmd.append('f77_opt_path=%s' % protect_path(self.scons_fcompiler_path))
505+
cmd.append('f77_opt_path=%s' % self.scons_fcompiler_path)
506506

507507
if self.scons_cxxcompiler:
508508
cmd.append('cxx_opt=%s' % self.scons_cxxcompiler)
509509
if self.scons_cxxcompiler_path:
510-
cmd.append('cxx_opt_path=%s' % protect_path(self.scons_cxxcompiler_path))
510+
cmd.append('cxx_opt_path=%s' % self.scons_cxxcompiler_path)
511511

512512
cmd.append('include_bootstrap=%s' % dirl_to_str(get_numpy_include_dirs(sconscript)))
513513
cmd.append('bypass=%s' % self.bypass)

0 commit comments

Comments
 (0)