Ralf W. Grosse-Kunstleve

Results 569 comments of Ralf W. Grosse-Kunstleve

@vstinner I saw you worked on `safe_path`. I'm wondering if you have clues that could help me understand a difference in behavior between Python 3.10.5 and 3.11.0b5: * 3.10.5: pybind11...

@vstinner Thanks a lot for the explanation and the pointers! I see `PySys_SetArgvEx()` is deprecated in 3.11. > So PYTHONPATH was used. It's part of the computed sys.path. But evidently...

There seems to be some kind of conflict in expectations & observations: > Sorry, I don't get how you manage to get PYTHONPATH environment variable being ignored. But earlier: >...

> At the moment I'm leaning more towards root-causing why `environment = 1` but `sys.path` is not updated. Interestingly — and luckily — I'm seeing a behavior change between 3.11.0b5...

I only now got a chance to poke some more at this, trying to use `PyConfig_InitPythonConfig()` instead: ```diff - PyConfig_InitIsolatedConfig(&config); + PyConfig_InitPythonConfig(&config); ``` With that as the only diff against...

> Python still uses PYTHONPATH env var. I cannot explain why pybind11 no longer uses it since you didn't provide a short example reproducing your issue. It's purely a pybind11...

> You should be able to use PYTHONPATH if you set isolated=0 and use_environment=1. Confirmed, thanks @vstinner! (Previously I only tried use_environment=1 without also setting isolated=0.) With that figured out,...

@Skylion007 @henryiii This (small) PR is ready for review now.

@laramiel @amauryfa @henryiii @Skylion007 I revised custom.rst top to bottom. Could you please review? I only changed custom.rst, the rest is as before. I kept example code changes to a...

@laramiel @amauryfa @henryiii @Skylion007 Thanks Amaury and Laramie for the feedback! And Henry for the `[[maybe_unused]]` hint from 3 weeks ago. I think I addressed everything now, and beyond, by...