Skip to content

Commit

Permalink
Rename PyInit syms to avoid clashes
Browse files Browse the repository at this point in the history
Built extensions in packages often have common names
like speedups, utils, _objects, cpython, etc. which
reside inside the package namespace.
The compiled extensions each have a PyInit_<module>
which needs to be renamed to PyInit_<pkg>_<module>
to avoid clashes when combined into a static binary.

Fixes #169
  • Loading branch information
jayvdb committed Nov 15, 2019
1 parent 35a7035 commit d66cc29
Show file tree
Hide file tree
Showing 5 changed files with 259 additions and 15 deletions.
83 changes: 71 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyoxidizer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ hex = "0.3"
itertools = "0.8"
lazy_static = "1.3"
libc = "0.2"
object = { version = "0.15.0", features = ["read", "std", "write"] }
regex = "1"
reqwest = "0.9"
rustc_version = "0.2"
Expand Down
1 change: 1 addition & 0 deletions pyoxidizer/src/pyrepackager/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ pub mod bytecode;
pub mod config;
pub mod dist;
pub mod fsscan;
pub mod object;
pub mod packaging_rule;
pub mod repackage;
pub mod resource;
Expand Down
Loading

0 comments on commit d66cc29

Please sign in to comment.