代码之家  ›  专栏  ›  技术社区  ›  Tim McNamara

分配困难-

  •  2
  • Tim McNamara  · 技术社区  · 14 年前

    我是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 回复  |  直到 14 年前
        1
  •  2
  •   nosklo    14 年前

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

    上传你可能会用到 distutils -documented

    python setup.py sdist upload
    

    一些好的读物: