Skip to content

Commit

Permalink
latest
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Cummins committed Sep 27, 2024
1 parent 2dfd3d5 commit 66a1e98
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/prelink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ use crate::{ComponentizePyConfig, ConfigContext, Library, RawComponentizePyConfi

static NATIVE_EXTENSION_SUFFIX: &str = ".cpython-312-wasm32-wasi.so";

type ConfigsMatchedWorlds<'a> =
IndexMap<String, (ConfigContext<ComponentizePyConfig>, Option<&'a str>)>;

pub fn embedded_python_standard_library() -> Result<TempDir, io::Error> {
// Untar the embedded copy of the Python standard library into a temporary directory
let stdlib = tempfile::tempdir()?;
Expand Down Expand Up @@ -98,13 +101,7 @@ pub fn search_for_libraries_and_configs<'a>(
python_path: &'a Vec<&'a str>,
module_worlds: &'a [(&'a str, &'a str)],
world: Option<&'a str>,
) -> Result<
(
IndexMap<String, (ConfigContext<ComponentizePyConfig>, Option<&'a str>)>,
Vec<Library>,
),
anyhow::Error,
> {
) -> Result<(ConfigsMatchedWorlds<'a>, Vec<Library>), anyhow::Error> {
let mut raw_configs: Vec<crate::ConfigContext<crate::RawComponentizePyConfig>> = Vec::new();
let mut library_path: Vec<(&str, Vec<std::path::PathBuf>)> =
Vec::with_capacity(python_path.len());
Expand Down

0 comments on commit 66a1e98

Please sign in to comment.