Skip to content

Commit

Permalink
minor update for better Python builds
Browse files Browse the repository at this point in the history
  • Loading branch information
q-posev committed Oct 1, 2021
1 parent 0cba81f commit 01e4476
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ The `docker run` command line arguments used here:
- `hdf5_1_12_on_2014_x86_64` (name of the Docker image to run)
- `/bin/bash` (which binary the container should execute)

To run the ARM-based container (e.g. with `_aarch64` suffix) on Intel/AMD processor, just add the `--platform linux/arm64` to the
`docker run` arguments.

Once the Docker container is launched and the corresponding prompt is switched to the container, run the following (example for release 0.2.0):

`cd tmp/ && ./build_manylinux_wheels.sh trexio-0.2.0.tar.gz`
Expand Down
5 changes: 4 additions & 1 deletion python/install_pytrexio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ else
fi

# Install/upgrade packages required for the installation
python3 -m pip install --upgrade setuptools wheel twine
python3 -m pip install --upgrade setuptools wheel pip
python3 -m pip install -r requirements.txt

# export NUMPY_INCLUDEDIR environment variable needed for the proper setup
Expand Down Expand Up @@ -60,6 +60,9 @@ python3 -m pip install dist/trexio-*.whl --force-reinstall
# Uninstall pytrexio: this only works from the pytrexio root directory
#python3 -m pip uninstall trexio

# Install twine to upload things on PyPI
#python3 -m pip install --upgrade twine

# Test the current release by uploading to TestPyPI sandbox
#python3 -m twine upload --repository testpypi dist/trexio-*.tar.gz

Expand Down

0 comments on commit 01e4476

Please sign in to comment.