indygreg / PyOxidizer

A modern Python application packaging and distribution tool
Mozilla Public License 2.0
5.47k stars 239 forks source link

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

Open julienfr112 opened 2 years ago

julienfr112 commented 2 years ago

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"

indygreg commented 2 years ago

This might be related to the version normalization issues (e.g. 3.10 getting normalized to 3.1. There are some PRs floating around to purportedly deal with this problem. I'll need to investigate more.

Thanks for the report.