8000 fix auditwheel .so relocation for namespace modules by pascalkuthe · Pull Request #2513 · PyO3/maturin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix auditwheel .so relocation for namespace modules #2513

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/build_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,14 @@ impl BuildContext {
let artifact_dir = match self.bridge() {
// cffi bindings that contains '.' in the module name will be split into directories
BridgeModel::Cffi => self.module_name.split(".").collect::<PathBuf>(),
// For namespace packages the modules the modules resides resides at ${module_name}.so
// where periods are replaced with slashes so for example my.namespace.module would reside
// at my/namespace/module.so
_ if self.module_name.contains(".") => {
let mut path = self.module_name.split(".").collect::<PathBuf>();
path.pop();
path
}
// For other bindings artifact .so file usually resides at ${module_name}/${module_name}.so
_ => PathBuf::from(&self.module_name),
};
Expand Down
Loading
0