1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-12-23 04:43:57 +01:00

return --force-reinstall option to manual Python installation

This commit is contained in:
q-posev 2022-01-19 14:09:28 +01:00
parent e9db0c66d4
commit 2ce3f09c7f

View File

@ -54,14 +54,7 @@ python3 -m pip install -r requirements.txt
python3 -m build --sdist --wheel --outdir dist/ python3 -m build --sdist --wheel --outdir dist/
# Install pytrexio in the current environment from the aforementioned wheel # Install pytrexio in the current environment from the aforementioned wheel
python3 -m pip install dist/trexio-*.whl --force-reinstall
# OLD WAY
# --force-reinstall is needed here because build-system pre-installs pytrexio in the environment
# but does not install things in the corresponding site-packages directory
#python3 -m pip install dist/trexio-*.whl --force-reinstall
# NEW WAY
python3 -m pip install dist/trexio-*.whl
# Run the command below in the root directory to install the package in 'editable' (-e) mode without dependencies (--no-deps) # Run the command below in the root directory to install the package in 'editable' (-e) mode without dependencies (--no-deps)
#python -m pip install -e . --no-deps #python -m pip install -e . --no-deps
@ -86,4 +79,3 @@ rm -rf build dist trexio.egg-info
#Removing MANIFEST.in leads to issues in the installation. In particular, the .c and .h source files do not get copied #Removing MANIFEST.in leads to issues in the installation. In particular, the .c and .h source files do not get copied
#from the src/ directory into the tar.gz which is produced by setup sdist command. #from the src/ directory into the tar.gz which is produced by setup sdist command.
#These source files are required to build the pytrexio.so extension module, which is needed for the Python API. #These source files are required to build the pytrexio.so extension module, which is needed for the Python API.