作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
有没有办法使用pipwheel
命令来创建通用轮子?
例如,以aws_requests_auth
为例,如果我执行pip Wheel aws_requests_auth,
创建了一个 Python3 轮:aws_requests_auth-0.4.1-py3-none-any.whl
。
我可以更改一些内容来创建 py2.py3-none-any.whl
轮子吗?
上例中使用的文件:
$ 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',
]
)
最佳答案
在setup.cfg
中:
[bdist_wheel]
universal=1
引用:https://wheel.readthedocs.io/en/stable/user_guide.html#building-wheels
关于python - `pipwheel`命令可以创建*通用*轮子吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50686268/
有没有办法使用pipwheel命令来创建通用轮子? 例如,以aws_requests_auth为例,如果我执行 pip Wheel aws_requests_auth, 创建了一个 Python3 轮
我是一名优秀的程序员,十分优秀!