mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
list the files in the dist folder, do a shell expansion to get the wheel name, delete all wheels after
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
@@ -249,8 +249,12 @@ def websiteFactory(platform, gitMode='incremental', fullBuild=False):
|
||||
factory = getBaseFactory(gitMode=gitMode)
|
||||
# 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", '--dist-dir', 'dist']), workdir= 'build/wrappers/Python', haltOnFailure = True))
|
||||
# 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", "install", "dist/coolprop*.whl"]), workdir= 'build/wrappers/Python', haltOnFailure = True))
|
||||
factory.addStep(ShellCommand(command=' '.join([docActivateCmd(), "pip", "install", "`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))
|
||||
# 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