How to build multi linux binaries and Mac binaries.
Move to the directory containing this file and run manylinux1 build container:
docker run --rm -it -v $(pwd):/src quay.io/pypa/manylinux1_x86_64
From within the docker container:
cd /src
# Clean up files
find ./judy-1.0.5/ -type f \( -name "*.o" -o -name "*.a" -o -name "*.so" \) -exec rm {} \;
find . -type f \( -name "*.o" -o -name "*.a" -o -name "*.so" \) -exec rm {} \;
for PYBIN in /opt/python/*/bin; do
"${PYBIN}/pip" wheel . -w ./wheelhouse
done
for whl in ./wheelhouse/*.whl; do
auditwheel repair "$whl" -w ./dist
done
# Clean up files
find ./judy-1.0.5/ -type f \( -name "*.o" -o -name "*.a" -o -name "*.so" \) -exec rm {} \;
../<python-ver>/python setup.py bdist_wheel
../<other-ver>/python setup.py bdist_wheel
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
Test using:
pip install https://test-files.pythonhosted.org/packages/.../judy-1.0.5-cp27-cp27mu-manylinux1_x86_64.whl
twine upload dist/*
Test using:
pip install judy