分发困难​​ -

发布于 2024-09-30 21:17:45 字数 1571 浏览 5 评论 0原文

我是 Python 打包新手,正在尝试找出需要哪些标志才能将某些内容正确上传到 PyPi。 distribute 似乎构建了一些东西,然后立即删除它们。我该如何阻止这种情况发生?

这是回溯:

tim@falcon:~/Code/slate$ python setup.py sdist
running sdist
running egg_info
writing requirements to src/slate.egg-info/requires.txt
writing src/slate.egg-info/PKG-INFO
writing top-level names to src/slate.egg-info/top_level.txt
writing dependency_links to src/slate.egg-info/dependency_links.txt
writing manifest file 'src/slate.egg-info/SOURCES.txt'
creating slate-0.2.3
creating slate-0.2.3/src
creating slate-0.2.3/src/slate
creating slate-0.2.3/src/slate.egg-info
making hard links in slate-0.2.3...
hard linking .gitignore -> slate-0.2.3
hard linking LICENSE -> slate-0.2.3
hard linking README -> slate-0.2.3
hard linking setup.py -> slate-0.2.3
hard linking src/slate/__init__.py -> slate-0.2.3/src/slate
hard linking src/slate/slate.py -> slate-0.2.3/src/slate
hard linking src/slate.egg-info/PKG-INFO -> slate-0.2.3/src/slate.egg-info
hard linking src/slate.egg-info/SOURCES.txt -> slate-0.2.3/src/slate.egg-info
hard linking src/slate.egg-info/dependency_links.txt -> slate-0.2.3/src/slate.egg-info
hard linking src/slate.egg-info/requires.txt -> slate-0.2.3/src/slate.egg-info
hard linking src/slate.egg-info/top_level.txt -> slate-0.2.3/src/slate.egg-info
Writing slate-0.2.3/setup.cfg
tar -cf dist/slate-0.2.3.tar slate-0.2.3
gzip -f9 dist/slate-0.2.3.tar
removing 'slate-0.2.3' (and everything under it)

am new to Python packaging and am trying to work out which flags I need to get something uploaded properly into PyPi. distribute seems to building things them deleting them straight away. How do I stop that from happening?

Here is the traceback:

tim@falcon:~/Code/slate$ python setup.py sdist
running sdist
running egg_info
writing requirements to src/slate.egg-info/requires.txt
writing src/slate.egg-info/PKG-INFO
writing top-level names to src/slate.egg-info/top_level.txt
writing dependency_links to src/slate.egg-info/dependency_links.txt
writing manifest file 'src/slate.egg-info/SOURCES.txt'
creating slate-0.2.3
creating slate-0.2.3/src
creating slate-0.2.3/src/slate
creating slate-0.2.3/src/slate.egg-info
making hard links in slate-0.2.3...
hard linking .gitignore -> slate-0.2.3
hard linking LICENSE -> slate-0.2.3
hard linking README -> slate-0.2.3
hard linking setup.py -> slate-0.2.3
hard linking src/slate/__init__.py -> slate-0.2.3/src/slate
hard linking src/slate/slate.py -> slate-0.2.3/src/slate
hard linking src/slate.egg-info/PKG-INFO -> slate-0.2.3/src/slate.egg-info
hard linking src/slate.egg-info/SOURCES.txt -> slate-0.2.3/src/slate.egg-info
hard linking src/slate.egg-info/dependency_links.txt -> slate-0.2.3/src/slate.egg-info
hard linking src/slate.egg-info/requires.txt -> slate-0.2.3/src/slate.egg-info
hard linking src/slate.egg-info/top_level.txt -> slate-0.2.3/src/slate.egg-info
Writing slate-0.2.3/setup.cfg
tar -cf dist/slate-0.2.3.tar slate-0.2.3
gzip -f9 dist/slate-0.2.3.tar
removing 'slate-0.2.3' (and everything under it)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

海未深 2024-10-07 21:17:45

此消息似乎表明脚本删除了为执行包而创建的临时目录... .tar.gz 文件未删除。检查您的 dist 目录。

要上传,您可以使用 distutils-documented 方式:

python setup.py sdist upload

一些好读物:

This message seems to indicate that the script removed a temporary directory created to do your package... The .tar.gz file is not removed. Check your dist directory for it.

To upload you can probably use distutils-documented way:

python setup.py sdist upload

Some good reads:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文