Skip to main content

assert_execution_files

Function assert_execution_files 

Source
pub fn assert_execution_files(
    execution: Option<&Execution>,
    adapter: &BoxTargetAdapter,
    python_version: &str,
    files: &BTreeSet<String>,
) -> Result<()>
Expand description

Confirms optional execution metadata names something runnable in a payload or archive.

files must hold only regular entries: a link resolves, but the thing that finally runs has to be a file, and the caller decides which of the two questions it is asking.

ยงErrors

When the script is missing, or the module resolves to nothing.