From 4ebd13b0400294680e840485df174c760353d571 Mon Sep 17 00:00:00 2001 From: q-posev Date: Wed, 18 Aug 2021 13:46:16 +0300 Subject: [PATCH] change pytrexio to trexio + comments on compatibility tags and editable installations --- python/install_pytrexio.sh | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/python/install_pytrexio.sh b/python/install_pytrexio.sh index 65fb3a0..d85b8a3 100755 --- a/python/install_pytrexio.sh +++ b/python/install_pytrexio.sh @@ -5,7 +5,6 @@ set -e # This script should update the version of the Python package #source version.py -#exit 0 # Install/upgrade packages required for the installation python3 -m pip install --upgrade setuptools wheel twine @@ -25,23 +24,28 @@ python3 setup.py sdist bdist_wheel # Install pytrexio in the current environment from the aforementioned wheel # --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/pytrexio-0.1-*.whl --force-reinstall +python3 -m pip install dist/trexio-0.1-*.whl --force-reinstall + +# 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 # Uninstall pytrexio: this only works from the pytrexio root directory (more likely python/ folder) and only after --force-reinstall -#python3 -m pip uninstall pytrexio +#python3 -m pip uninstall trexio # Test the current release by uploading to TestPyPI sandbox -#python3 -m twine upload --repository testpypi dist/pytrexio-*.tar.gz +#python3 -m twine upload --repository testpypi dist/trexio-*.tar.gz # NOTE:I get an error: -# Binary wheel 'pytrexio-0.1-cp38-cp38-linux_x86_64.whl' has an unsupported platform tag 'linux_x86_64'. +# Binary wheel 'trexio-0.1-cp38-cp38-linux_x86_64.whl' has an unsupported platform tag 'linux_x86_64'. # when uploading the wheel instead of the tar.gz file to testpypi # This is a well-known issue, see https://stackoverflow.com/questions/59451069/binary-wheel-cant-be-uploaded-on-pypi-using-twine -# Once fixed both .tar.gz and .whl distribution can be uploaded, meaning that dist/pytrexio-*.tar.gz can be replaced by dist/* +# Once fixed both .tar.gz and .whl distribution can be uploaded, meaning that dist/trexio-*.tar.gz can be replaced by dist/* +# +# Compatibility tags for Linux have been discussed in PEP-513 https://www.python.org/dev/peps/pep-0513/ # Upload updated version of PyTREXIO to PyPI -#python3 -m twine upload dist/pytrexio-*.tar.gz +#python3 -m twine upload dist/trexio-*.tar.gz # Cleaning -rm -rf build dist pytrexio.egg-info +rm -rf build dist trexio.egg-info