使用stdeb

时间:2018-01-29 13:01:00

标签: python debian package

拥有python项目的文件夹,包含以下常见内容:

- 。py文件,它从__init__运行main()。py

-setup.py文件,包含stdeb所需的所有信息

-readme.txt文件

-folder with __init__。py file

我已通过“python setup.py install”成功安装了该软件包,并使用“import run; run.main()”对其进行了测试。所有工作都很好,直到那一刻。

然后我想使用stdeb库将我的python包转换为debian包。

使用项目文件夹“python setup.py --command-packages=stdeb.command bdist_deb

中的以下命令

给我以下追溯:

running bdist_deb
running sdist_dsc
running egg_info
writing run.egg-info/PKG-INFO
writing top-level names to run.egg-info/top_level.txt
writing dependency_links to run.egg-info/dependency_links.txt
writing entry points to run.egg-info/entry_points.txt
reading manifest file 'run.egg-info/SOURCES.txt'
writing manifest file 'run.egg-info/SOURCES.txt'
running sdist
running check
creating run-0.0.1
creating run-0.0.1/run
creating run-0.0.1/run.egg-info
copying files to run-0.0.1...
copying README.txt -> run-0.0.1
copying setup.py -> run-0.0.1
copying run/__init__.py -> run-0.0.1/run
copying run.egg-info/PKG-INFO -> run-0.0.1/run.egg-info
copying run.egg-info/SOURCES.txt -> run-0.0.1/run.egg-info
copying run.egg-info/dependency_links.txt -> run-0.0.1/run.egg-info
copying run.egg-info/entry_points.txt -> run-0.0.1/run.egg-info
copying run.egg-info/top_level.txt -> run-0.0.1/run.egg-info
Writing run-0.0.1/setup.cfg
Creating tar archive
removing 'run-0.0.1' (and everything under it)
error: [Errno 2] No such file or directory

在这种情况下会导致错误“错误:[Errno 2]没有这样的文件或目录”,我该如何处理?

非常感谢!

1 个答案:

答案 0 :(得分:0)

相关问题