mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user