Uninstall all the old versions of coolprop

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2014-12-31 16:15:05 -05:00
parent fc0dcea2ac
commit 1277e2369e

View File

@@ -252,6 +252,12 @@ def websiteFactory(platform, gitMode='incremental', fullBuild=False):
# List the files in the dist directory
factory.addStep(ShellCommand(command=' '.join([docActivateCmd(), "ls", 'dist/*.*']), workdir= 'build/wrappers/Python', haltOnFailure = True))
# Install the wheel - this will uninstall the old version
factory.addStep(ShellCommand(command=' '.join([docActivateCmd(), "pip", "uninstall", "coolprop"]), workdir= 'build/wrappers/Python', haltOnFailure = False))
factory.addStep(ShellCommand(command=' '.join([docActivateCmd(), "pip", "uninstall", "coolprop"]), workdir= 'build/wrappers/Python', haltOnFailure = False))
factory.addStep(ShellCommand(command=' '.join([docActivateCmd(), "pip", "uninstall", "coolprop"]), workdir= 'build/wrappers/Python', haltOnFailure = False))
factory.addStep(ShellCommand(command=' '.join([docActivateCmd(), "pip", "uninstall", "coolprop"]), workdir= 'build/wrappers/Python', haltOnFailure = False))
factory.addStep(ShellCommand(command=' '.join([docActivateCmd(), "pip", "uninstall", "coolprop"]), workdir= 'build/wrappers/Python', haltOnFailure = False))
# Install the wheel - this will uninstall the old version
factory.addStep(ShellCommand(command=' '.join([docActivateCmd(), "pip", "install", "-I", "--upgrade", "--no-deps", "--force-reinstall", "`ls dist/CoolProp*.whl`"]), workdir= 'build/wrappers/Python', haltOnFailure = True))
# Remove the generated wheel
factory.addStep(ShellCommand(command=' '.join([docActivateCmd(), "rm", 'dist/*.whl']), workdir= 'build/wrappers/Python', haltOnFailure = True))