PrefixPaths#
PrefixPathType
#
directory: bool
property
#
This is a directory
hardlink: bool
property
#
Whether the path should be hardlinked (the default) (once installed)
pyc_file: bool
property
#
This is a file compiled from Python code when a noarch package was installed
softlink: bool
property
#
Whether the path should be softlinked (once installed)
unix_python_entrypoint: bool
property
#
A Unix entry point python script (a
windows_python_entrypoint_exe: bool
property
#
A Windows entry point python script (a
windows_python_entrypoint_script: bool
property
#
A Windows entry point python script (a
__init__(path_type)
#
from_py_path_type(py_path_type)
classmethod
#
Construct Rattler PathType from FFI PyPathType object.
PrefixPaths
#
PrefixPathsEntry
#
Bases: BasePathLike
__init__(relative_path, path_type, prefix_placeholder=None, file_mode=None, sha256=None, sha256_in_prefix=None, size_in_bytes=None, original_path=None)
#
Create a new PrefixPathsEntry instance.
Parameters#
relative_path : os.PathLike[str] The relative path from the root of the package path_type : PrefixPathType Determines how to include the file when installing the package prefix_placeholder : Optional[str], optional The placeholder prefix used in the file, by default None file_mode : Optional[FileMode], optional The file mode of the path, by default None sha256 : Optional[bytes], optional The sha256 of the path, by default None sha256_in_prefix : Optional[bytes], optional The sha256 of the path in the prefix, by default None size_in_bytes : Optional[int], optional The size of the path in bytes, by default None original_path : Optional[os.PathLike[str]], optional The original path of the file, by default None