【问题标题】:Creating Debian Package from Python Package using stdeb使用 stdeb 从 Python 包创建 Debian 包
【发布时间】:2018-01-29 13:01:00
【问题描述】:

有一个python项目的文件夹,里面有以下常用的东西:

__init__.py运行main()的-.py文件

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

-readme.txt 文件

-带有__init__.py 文件的文件夹

我已通过“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] 没有这样的文件或目录”,我该如何处理?

非常感谢!

【问题讨论】:

    标签: python debian package


    【解决方案1】:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-01-02
      • 1970-01-01
      • 2011-10-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多