簡體   English   中英

使用stdeb從Python軟件包創建Debian軟件包

[英]Creating Debian Package from Python Package using stdeb

有一個python項目文件夾,其中包含以下常見內容:

-.py文件,該文件從__init__ .py運行main()

-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]沒有這樣的文件或目錄”,我該如何處理?

太謝謝了!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM