Python设置如何确定输出路径?
我用“ python setup.py buiild”构建netifaces
模块。但是在两个构建过程中,输出路径是不同的。
第一个构建,输出路径为lib.linux-x86_64-3.9
第二构建,输出路径为lib.linux-x86_64-cpython-39
我想知道Python如何setup.py
确定输出路径?
谢谢。
I build netifaces
module with "python setup.py buiild". But during two build process, the output path is different.
First build, the output path is lib.linux-x86_64-3.9
Second build, the output path is lib.linux-x86_64-cpython-39
I want to know how python setup.py
determines output path?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道构建路径发生变化的原因。不幸的是,我无法复制您的经验。我创建了此DockerFile以替换:
它会产生此输出:
如果我在构建之间删除
build
文件,则没有差异。输出路径由 setuptools 或可能是 distutils ,但我也观察到Netifaces具有a giant noreferrer“> giant setup.py file 影响输出目录的行为存在。
我建议的是:
I don't know the reason why the build path changes. Unfortunately, I'm unable to replicate your experience. I created this dockerfile in an attempt to replacate:
It produces this output:
If I remove the
build
file between builds, there's no diff.The output path is determined by setuptools or possibly by distutils, but I also observe that netifaces has a giant setup.py file, so it's entirely possible the behavior affecting the output directory is there.
What I recommend is to: