@@ -690,13 +690,13 @@ def build_cefpython_module():
690690 os .chdir (BUILD_CEFPYTHON )
691691
692692 if FAST_FLAG :
693- ret = subprocess .call ("{python} {tools_dir}/cython_setup.py"
693+ ret = subprocess .call ("\" {python}\" {tools_dir}/cython_setup.py"
694694 " build_ext --fast"
695695 .format (python = sys .executable ,
696696 tools_dir = TOOLS_DIR ),
697697 shell = True )
698698 else :
699- ret = subprocess .call ("{python} {tools_dir}/cython_setup.py"
699+ ret = subprocess .call ("\" {python}\" {tools_dir}/cython_setup.py"
700700 " build_ext"
701701 .format (python = sys .executable ,
702702 tools_dir = TOOLS_DIR ),
@@ -725,7 +725,7 @@ def build_cefpython_module():
725725 " being generated yet. Will re-run the build.py script"
726726 " programmatically now." )
727727 args = list ()
728- args .append (sys .executable )
728+ args .append (" \" {python} \" " . format ( python = sys .executable ) )
729729 args .append (os .path .join (TOOLS_DIR , os .path .basename (__file__ )))
730730 assert __file__ in sys .argv [0 ]
731731 args .extend (sys .argv [1 :])
@@ -794,7 +794,7 @@ def install_and_run():
794794 # Make setup installer
795795 print ("[build.py] Make setup installer" )
796796 make_tool = os .path .join (TOOLS_DIR , "make_installer.py" )
797- ret = os .system ("{python} {make_tool} --version {version}"
797+ ret = os .system ("\" {python}\" {make_tool} --version {version}"
798798 .format (python = sys .executable ,
799799 make_tool = make_tool ,
800800 version = VERSION ))
@@ -805,7 +805,7 @@ def install_and_run():
805805 # Install
806806 print ("[build.py] Install the cefpython package" )
807807 os .chdir (setup_installer_dir )
808- ret = os .system ("{sudo} {python} setup.py install"
808+ ret = os .system ("{sudo} \" {python}\" setup.py install"
809809 .format (sudo = get_sudo (), python = sys .executable ))
810810 if ret != 0 :
811811 print ("[build.py] ERROR while installing package" )
@@ -818,7 +818,7 @@ def install_and_run():
818818 # Run unittests
819819 print ("[build.py] Run unittests" )
820820 test_runner = os .path .join (UNITTESTS_DIR , "_test_runner.py" )
821- ret = os .system ("{python} {test_runner}"
821+ ret = os .system ("\" {python}\" {test_runner}"
822822 .format (python = sys .executable , test_runner = test_runner ))
823823 if ret != 0 :
824824 print ("[build.py] ERROR while running unit tests" )
@@ -829,7 +829,7 @@ def install_and_run():
829829 os .chdir (EXAMPLES_DIR )
830830 kivy_flag = "--kivy" if KIVY_FLAG else ""
831831 run_examples = os .path .join (TOOLS_DIR , "run_examples.py" )
832- ret = os .system ("{python} {run_examples} {kivy_flag}"
832+ ret = os .system ("\" {python}\" {run_examples} {kivy_flag}"
833833 .format (python = sys .executable ,
834834 run_examples = run_examples ,
835835 kivy_flag = kivy_flag ))
0 commit comments