Skip to content
Permalink
Browse files

update scripts for python 27

  • Loading branch information...
sdpython committed Sep 23, 2015
1 parent 9a0e24c commit ead2b5f9fbe9d369b77db87abd5edf4e74450615
@@ -334,6 +334,12 @@ def replacements(cmd, engine, python, suffix):
.replace("__MODULE__", module_name) # suffix for the virtual environment and module name
if "[27]" in job:
res = res.replace("__PYTHON27__", python)
if "__DEFAULTPYTHON__" in res:
if "default" not in self.engines:
raise JenkinsExtException(
"a default engine (Python 3.4) must be defined for script using Python 27, job={}".format(job))
res = res.replace("__DEFAULTPYTHON__",
os.path.join(self.engines["default"]))

if "__" in res:
raise JenkinsJobException(
@@ -566,7 +566,7 @@ def _sversion():


windows_jenkins_27 = [
"set jenkinspythonexe=__PYTHON__\n@echo ~SET jenkinspythonexe=__PYTHON__\n" +
"set jenkinspythonexe=__DEFAULTPYTHON__\n@echo ~SET jenkinspythonexe=__DEFAULTPYTHON__\n" +
jenkins_windows_setup + " build_script\n" +
windows_error +
"\n@echo ~CALL %jenkinspythonexe% setup.py setup_hook\n%jenkinspythonexe% setup.py setup_hook\n" +

0 comments on commit ead2b5f

Please sign in to comment.
You can’t perform that action at this time.