From 8f29f4eda66226d4330aaf350fb9bcbe9c300151 Mon Sep 17 00:00:00 2001 From: Wolf Vollprecht Date: Thu, 16 Jan 2025 11:39:55 +0100 Subject: [PATCH] use python_version_independent more --- src/packaging/file_mapper.rs | 1 - src/recipe/parser/build.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/packaging/file_mapper.rs b/src/packaging/file_mapper.rs index cbfed70b..d2792b08 100644 --- a/src/packaging/file_mapper.rs +++ b/src/packaging/file_mapper.rs @@ -99,7 +99,6 @@ impl Output { dest_folder: &Path, ) -> Result, PackagingError> { let target_platform = &self.build_configuration.target_platform; - let noarch_type = self.recipe.build().noarch(); let entry_points = &self.recipe.build().python().entry_points; let path_rel = path.strip_prefix(prefix)?; diff --git a/src/recipe/parser/build.rs b/src/recipe/parser/build.rs index bbf7c574..f78bb07b 100644 --- a/src/recipe/parser/build.rs +++ b/src/recipe/parser/build.rs @@ -280,7 +280,7 @@ impl Build { pub const fn post_process(&self) -> &Vec { &self.post_process } - + pub(crate) fn is_python_version_independent(&self) -> bool { self.python().version_independent || self.noarch().is_python() }