Skip to content

Commit

Permalink
use python_version_independent more
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Jan 16, 2025
1 parent f2d0ac5 commit 8f29f4e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/packaging/file_mapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ impl Output {
dest_folder: &Path,
) -> Result<Option<PathBuf>, 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)?;
Expand Down
2 changes: 1 addition & 1 deletion src/recipe/parser/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ impl Build {
pub const fn post_process(&self) -> &Vec<PostProcess> {
&self.post_process
}

pub(crate) fn is_python_version_independent(&self) -> bool {
self.python().version_independent || self.noarch().is_python()
}
Expand Down

0 comments on commit 8f29f4e

Please sign in to comment.