Python 3 模組
此模組提供處理 Python 3 的支援。它具有以下方法。
此模組已棄用,並由 python 模組取代。
find_python
這是一種跨平台尋找 Python 3 可執行檔的方法,它在不同的作業系統上可能會有不同的名稱。返回一個 external_program
物件。
新增於 0.38.0
已棄用,由 python
模組中的 find_installation
函式取代。
extension_module
建立一個 shared_module
目標,其名稱根據目標平台的命名慣例。所有位置和關鍵字參數都與 shared_module()
相同。
extension_module
不會將任何相依性添加到函式庫,因此使用者可能需要添加 dependencies : dependency('python3')
,請參閱 Python3 相依性。
新增於 0.38.0
已棄用,由 python
模組中的 extension_module
方法取代。
language_version
返回一個帶有 Python 語言版本的字串,例如 3.5
。
新增於 0.40.0
已棄用,由 python
模組中的 language_version
方法取代。
sysconfig_path
返回沒有前綴的 Python sysconfig 路徑,例如 lib/python3.6/site-packages
。
新增於 0.40.0
已棄用,由 python
模組中的 get_path
方法取代。
搜尋結果為