indygreg / indygreg/PyOxidizer
Package resources with `pkgutil`, `pkg_resources` and `importlib.resources`
- Dominant language
- Rust
- Stars
- 6.2k
- Forks
- 256
- PR merge metrics
- No merged PRs in 30d
Description
I've tested several mechanisms for package resources with in-memory PyOxidizer builds and the results are inconsistent. I made a little demo repository where I try out different mechanisms: https://github.com/thijsmie/pyoxidizer-resource-tests I hope this can serve as a reproducer while debugging this.
A short summary would be that `pkgutil` never works, `importlib.resources` works in some cases and `pkg_resources` always works in my tests so far. This is probably related to #529.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the linked pyoxidizer-resource-tests demo repository and reproduce its in-memory build cases for pkgutil, importlib.resources, and pkg_resources. Trace the corresponding PyOxidizer resource handling to determine why the mechanisms differ. Done means a documented diagnosis and, if the implementation is responsible, consistent behavior across the reported cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, rust
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100