[英]Can`pip wheel` command create *universal* wheels?
Is there a way to use the pip wheel
command to create universal wheels?有没有办法使用
pip wheel
命令来创建通用轮子?
For instance, taking aws_requests_auth
as an example, if I execute例如,以
aws_requests_auth
为例,如果我执行pip wheel aws_requests_auth,
a Python3 wheel is created: aws_requests_auth-0.4.1-py3-none-any.whl
. pip wheel aws_requests_auth,
创建了一个 Python3 轮: aws_requests_auth-0.4.1-py3-none-any.whl
。
Can I change something to create a py2.py3-none-any.whl
wheel?我可以改变一些东西来创建一个
py2.py3-none-any.whl
轮子吗?
Files used in the above example:上例中使用的文件:
$ ls -R
.:
aws_requests_auth CHANGELOG.md dist LICENSE MANIFEST MANIFEST.in PKG-INFO README.md setup.py
./aws_requests_auth:
aws_auth.py boto_utils.py chardet-3.0.4-py2.py3-none-any.whl __init__.py tests
aws_requests_auth-0.4.1-py3-none-any.whl certifi-2018.4.16-py2.py3-none-any.whl idna-2.6-py2.py3-none-any.whl requests-2.18.4-py2.py3-none-any.whl urllib3-1.22-py2.py3-none-any.whl
./aws_requests_auth/tests:
__init__.py test_aws_auth.py test_boto_utils.py
./dist:
aws-requests-auth-0.4.1.tar.gz
$ cat setup.py
from distutils.core import setup
setup(
name='aws-requests-auth',
version='0.4.1',
author='David Muller',
author_email='davehmuller@gmail.com',
packages=['aws_requests_auth'],
url='https://github.com/davidmuller/aws-requests-auth',
description='AWS signature version 4 signing process for the python requests module',
long_description='See https://github.com/davidmuller/aws-requests-auth for installation and usage instructions.',
install_requires=['requests>=0.14.0'],
classifiers=[
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
]
)
In setup.cfg
:在
setup.cfg
:
[bdist_wheel]
universal=1
Refs: https://wheel.readthedocs.io/en/stable/user_guide.html#building-wheels参考: https ://wheel.readthedocs.io/en/stable/user_guide.html#building-wheels
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.