python#

Common Python specific path utilities.

Functions#

pyc_path(py_path, python_major_minor_version)

This must not return backslashes on Windows as that will break

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, ...)

Attributes#

pyc_path(py_path, python_major_minor_version)#

This must not return backslashes on Windows as that will break tests and leads to an eventual need to make url_to_path return backslashes too and that may end up changing files on disc or to the result of comparisons with the contents of them.

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)#