mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Make pip install more verbose; remove constants shared library if needed
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
@@ -252,12 +252,6 @@ 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", "-y", "coolprop"]), workdir= 'build/wrappers/Python', haltOnFailure = False))
|
||||
factory.addStep(ShellCommand(command=' '.join([docActivateCmd(), "pip", "uninstall", "-y", "coolprop"]), workdir= 'build/wrappers/Python', haltOnFailure = False))
|
||||
factory.addStep(ShellCommand(command=' '.join([docActivateCmd(), "pip", "uninstall", "-y", "coolprop"]), workdir= 'build/wrappers/Python', haltOnFailure = False))
|
||||
factory.addStep(ShellCommand(command=' '.join([docActivateCmd(), "pip", "uninstall", "-y", "coolprop"]), workdir= 'build/wrappers/Python', haltOnFailure = False))
|
||||
factory.addStep(ShellCommand(command=' '.join([docActivateCmd(), "pip", "uninstall", "-y", "coolprop"]), workdir= 'build/wrappers/Python', haltOnFailure = False))
|
||||
# Install the wheel - this will uninstall the old version
|
||||
factory.addStep(ShellCommand(command=' '.join([docActivateCmd(), "pip", "-vvv", "install", "--force-reinstall", "--ignore-installed", "--upgrade", "--no-index", "--use-wheel", "`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))
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
# If there is a constants.[pyd|so|dylib] in the main directory, it will be imported instead of the constants.py file.
|
||||
# It should be removed
|
||||
import constants
|
||||
if constants.__file__.rsplit('.', 1) not in ['pyc','pyo','py']:
|
||||
print("constants shared library has been removed. Please restart your python code")
|
||||
os.remove(constants.__file__)
|
||||
quit()
|
||||
|
||||
try:
|
||||
import matplotlib
|
||||
except ImportError:
|
||||
|
||||
Reference in New Issue
Block a user