python#

通用的 Python 特定路径实用程序。

函数#

pyc_path(py_path, python_major_minor_version)

这不应在 Windows 上返回反斜杠,因为这会破坏

missing_pyc_files(python_major_minor_version, files)

parse_entry_point_def(ep_definition)

get_python_short_path([python_version])

get_python_site_packages_short_path(python_version)

get_major_minor_version(string[, with_dot])

get_python_noarch_target_path(source_short_path, ...)

属性#

pyc_path(py_path, python_major_minor_version)#

这不应在 Windows 上返回反斜杠,因为这会破坏测试,并最终需要使 url_to_path 也返回反斜杠,这最终可能会更改磁盘上的文件或与它们内容比较的结果。

missing_pyc_files(python_major_minor_version, files)#
parse_entry_point_def(ep_definition)#
get_python_short_path(python_version=None)#
get_python_site_packages_short_path(python_version)#
_VERSION_REGEX#
get_major_minor_version(string, with_dot=True)#
get_python_noarch_target_path(source_short_path, target_site_packages_short_path)#