安装docker镜像

1
2
$ docker pull quay.io/pypa/manylinux1_x86_64
$ docker pull quay.io/pypa/manylinux1_i686

运行docker

1
$ docker run -i -t -v `pwd`:/io quay.io/pypa/manylinux1_x86_64 /bin/bash

查看支持的python

1
$ ls /opt/python/

发布Python包目录

1
2
3
4
5
$ cd /io/codes/pypkg
$ /opt/python/cp36-cp36m/bin/python setup.py bdist_wheel
$ cd dist
$ auditwheel show pypkg-xxx.whl
$ auditwheel repair pypkg-xxx.whl

使用twine上传pypi

1
2
$ cd dist/wheelhouse
$ twine upload pypkg-xxx.whl