Make sphinx docs builder use wheel+pip, this forces a clean installation

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2014-12-31 15:18:56 -05:00
parent fcea5b25ee
commit 98ba223626

View File

@@ -247,8 +247,10 @@ def websiteFactory(platform, gitMode='incremental', fullBuild=False):
#
# Create the factory to add the actions to
factory = getBaseFactory(gitMode=gitMode)
# Install the latest CoolProp system-wide - Migh cause errors if not run in virtual environment
factory.addStep(ShellCommand(command=' '.join([docActivateCmd(), "python", "setup.py", "install"]), workdir= 'build/wrappers/Python', haltOnFailure = True))
# Make a wheel - this is advantageous because it forces pip to uninstall coolprop, ensuring that all files installed are from this wheel
factory.addStep(ShellCommand(command=' '.join([docActivateCmd(), "python", "setup.py", "bdist_wheel"]), workdir= 'build/wrappers/Python', haltOnFailure = True))
# Install the wheel - this will uninstall the old version
factory.addStep(ShellCommand(command=' '.join([docActivateCmd(), "pip", "install", "dist/coo*.whl"]), workdir= 'build/wrappers/Python', haltOnFailure = True))
# Test the compiled CoolProp
factory.addStep(ShellCommand(command=' '.join([docActivateCmd(), "python", "-c", "\"import CoolProp; print(CoolProp.__gitrevision__)\""]), workdir= 'build/wrappers', haltOnFailure = True))
# Create plots and fluid tables