2010-11-08 77 views
2

对于Python包装来说是新的,我正试图弄清楚我需要将哪些标记正确上传到PyPi中。 distribute似乎构建他们直接删除它们的东西。我如何阻止这种情况发生?分发困难 -

这里是回溯:

[email protected]:~/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) 

回答

2

此消息似乎表明,该脚本文件删除创建的做你的包的临时目录...的.tar.gz文件不会被删除。检查你的dist目录。

要上传你大概可以使用distutils-documented方式:

python setup.py sdist upload 

一些很好的读取:

+0

哦,我愚蠢!当时间限制允许时,我会接受答案,约5分钟。 – 2010-11-08 22:58:17