indygreg / indygreg/PyOxidizer

policy.set_resource_handling_mode("files") incompatible with exe.read_package_root(...)

Open
#604 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Rust
Stars
6.2k
Forks
256
PR merge metrics
No merged PRs in 30d

Description

in the pyoxidizer.bzl, when you set resource handling mode to "files", read_package_root is not working anymore.

Ive check with and without having
`policy.set_resource_handling_mode("files")`
Module installed with read_package_root is available without, and enavailble with

pyoxidizer --version
PyOxidizer 0.22.0
pyembed crate location: version = "0.22.0"

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior in pyoxidizer.bzl with and without policy.set_resource_handling_mode("files") using PyOxidizer 0.22.0. Investigate how that setting interacts with exe.read_package_root(...), and verify that the installed module remains available when resource handling is set to "files".

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.