分发的困难 -

时间:2010-11-08 22:49:44

标签: python distutils

我是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)

1 个答案:

答案 0 :(得分:2)

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

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

python setup.py sdist upload

一些好的读物: