2010-11-08 76 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