packages / modules inside of a pyz are not used if present in root python path
- Dominant language
- Python
- Stars
- 1.9k
- Forks
- 114
- PR merge metrics
- No merged PRs in 30d
Description
I ran into an issue where my pyz packages pyyaml 5.1 but when run and extracted, the pyyaml it actually imported was an outdated version from the core python installation. This behavior seems consistent whether it is a package or module, part of the standard library or something installed into the root python etc.
Is this intended behavior and if so, is there a best practice?
Contributor guide
Research direction
Start by reproducing the reported PyYAML 5.1 case with a pyz and compare imports against the root Python installation. Done means establishing whether this precedence is intended and identifying the supported best practice or the change required to use bundled packages.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system, cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100