Struct python_packaging::wheel::WheelArchive [−][src]
pub struct WheelArchive { /* fields omitted */ }
Expand description
Represents a Python wheel archive.
Implementations
Construct an instance from a generic reader.
basename
is the filename of the wheel. It is used to try to
locate the info directory.
Obtain metadata about the wheel archive itself.
Obtain the .dist-info/METADATA
content as a parsed object.
Obtain the first header value from the archive metadata file.
Obtain values of all headers from the archive metadata file.
Obtain the version number of the wheel specification used to build this wheel.
Obtain the generator of the wheel archive.
Whether Root-Is-Purelib
is set.
Tag
values for the wheel archive.
Obtain files in the .dist-info/ directory.
The returned PathBuf
are prefixed with the appropriate *.dist-info
directory.
Obtain files that should be installed to purelib
.
*.data/purelib/
prefix is stripped from returned PathBuf
.
Obtain files that should be installed to platlib
.
*.data/platlib/
prefix is stripped from returned PathBuf
.
Obtain files that should be installed to headers
.
*.data/headers/
prefix is stripped from returned PathBuf
.
Obtain files that should be installed to scripts
.
*.data/scripts/
prefix is stripped from returned PathBuf
.
TODO support optional argument to rewrite #!python
shebangs.
Obtain files that should be installed to data
.
*.data/data/
prefix is stripped from returned PathBuf
.
Obtain normal files not part of metadata or special files.
These are likely installed as-is.
The returned PathBuf
has the same path as the file in the
wheel archive.
pub fn python_resources<'a>(
&self,
cache_tag: &str,
suffixes: &PythonModuleSuffixes,
emit_files: bool,
classify_files: bool
) -> Result<Vec<PythonResource<'a>>>
pub fn python_resources<'a>(
&self,
cache_tag: &str,
suffixes: &PythonModuleSuffixes,
emit_files: bool,
classify_files: bool
) -> Result<Vec<PythonResource<'a>>>
Obtain PythonResource
for files within the wheel.