Re-enabling Python builds on Linux, but skip the binary upload

This commit is contained in:
Jorrit Wronski
2015-09-15 14:56:50 +02:00
parent f298d66e41
commit d0462e316d

View File

@@ -430,23 +430,23 @@ def pythonFactory(pyID, pyCFG=PythonSlaveConfig("name")):
# Create the factory to add the actions to
factory = getBaseFactory()
#
if buildPyPI:
# Install dependencies
if installPackages and False: # disabled
installCMD = " ".join(["pip", "install"]) + " " + " ".join(pkgs)
factory.addStep(ShellCommand(command=combinedCMD(installCMD), workdir=workingFolder, haltOnFailure=True))
installCMD = " ".join(["python", "generate_meta_info.py"])
# Install dependencies
if installPackages and False: # disabled
installCMD = " ".join(["pip", "install"]) + " " + " ".join(pkgs)
factory.addStep(ShellCommand(command=combinedCMD(installCMD), workdir=workingFolder, haltOnFailure=True))
if installPackages and False: # disabled
installCMD = " ".join(["pip", "install","-r","requirements.txt"])
factory.addStep(ShellCommand(command=combinedCMD(installCMD), workdir=workingFolder, haltOnFailure=True))
# setuptools installation for PyPI packages
factory.addStep(RemoveDirectory(dir=os.path.join('build',installFolder), haltOnFailure = False))
installCMD = " ".join(["python", "setup.py"] + pyins)
installCMD = " ".join(["python", "generate_meta_info.py"])
factory.addStep(ShellCommand(command=combinedCMD(installCMD), workdir=workingFolder, haltOnFailure=True))
if installPackages and False: # disabled
installCMD = " ".join(["pip", "install","-r","requirements.txt"])
factory.addStep(ShellCommand(command=combinedCMD(installCMD), workdir=workingFolder, haltOnFailure=True))
installCMD = " ".join(["python", "setup.py", "clean"])
factory.addStep(ShellCommand(command=combinedCMD(installCMD), workdir=workingFolder, haltOnFailure=True))
upload_command(factory, installFolder, pyID=pyID)
# setuptools installation for PyPI packages
factory.addStep(RemoveDirectory(dir=os.path.join('build',installFolder), haltOnFailure = False))
installCMD = " ".join(["python", "setup.py"] + pyins)
factory.addStep(ShellCommand(command=combinedCMD(installCMD), workdir=workingFolder, haltOnFailure=True))
installCMD = " ".join(["python", "setup.py", "clean"])
factory.addStep(ShellCommand(command=combinedCMD(installCMD), workdir=workingFolder, haltOnFailure=True))
if buildPyPI:
upload_command(factory, installFolder, pyID=pyID)
if buildConda:
# Install dependencies