分发困难 -
我是 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此消息似乎表明脚本删除了为执行包而创建的临时目录...
.tar.gz
文件未删除。检查您的dist
目录。要上传,您可以使用
distutils
-documented 方式:一些好读物:
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 yourdist
directory for it.To upload you can probably use
distutils
-documented way:Some good reads: