UP | HOME

manylinux

安装docker镜像

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

运行docker

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

查看支持的python

$ ls /opt/python/

发布Python包目录

$ 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

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

Date: 2019-05-10 Fri 22:45

Author: shixiongfei

Created: 2020-09-05 Sat 14:40

Emacs 27.1 (Org mode 9.3)