Skip to Content
Python 技術手冊 第三版
book

Python 技術手冊 第三版

by lex Martelli, Anna Martelli Ravenscroft, Steve Holden
January 2018
Intermediate to advanced content levelIntermediate to advanced
856 pages
17h 17m
Chinese
GoTop Information, Inc.
Content preview from Python 技術手冊 第三版
772
|
25 章 發布擴充功能與程式
工程,那可以考慮 conda
http://bit.ly/2mQFsOM
)( Miniconda
http://bit.
ly/1HVwnq5
)及 Anaconda
https://docs.continuum.io/
)的基礎);如果你
想要一個也能管理你虛擬環境的指令稿安裝器,請考慮 pipsi
http://bit.
ly/2nwZ085
)。
setuptools
setuptools
是一組豐富且有彈性的工具,用來封裝 Python 程式和擴充功
能,以進行發布。我們建議你優先選用它,而非標準程式庫的
distutils
Distribution 及其根
一個
distribution
是被封裝為發布用的單一個封存檔(archive file)的一組
檔案。一個 distribution 可以包含 Python 套件和其他的 Python 模組(如第
6 章中所涵蓋的),還有選擇性的,Python 指令稿、以 C(或其他語言)
編寫的擴充功能、資料檔案,以及帶有詮釋資料(metadata)的輔助檔
案。如果它所包含的所有程式碼都是 Python,一個 distribution 就會被說
純粹
pure
的,若包括非 Python 的程式碼(通常是以 C 編寫的擴充功
能),就是
非純粹
nonpure
的。當一個 distribution 是純粹的,而且可用
v2 v3,無須
2to3
的轉換,我們就說它是
通用
universal
的。
你通常會將一個 distribution ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

測試驅動開發|使用 Python

測試驅動開發|使用 Python

Harry J.W. Percival
Linux 内核观测技术BPF

Linux 内核观测技术BPF

David Calavera, Lorenzo Fontana

Publisher Resources

ISBN: 9789864766819