ancient-vegetable-1055608/02/2022, 9:32 PM
internally, because it’s not supported by PEP 304-style pluggable importers (PyOx…r uses one). The problem is that the replacement,
, cannot currently load resources from namespace packages, and the very first thing that Pants does on startup is load the
file from the
namespace package using
There’s a backport library that fixes this issue, but that would require users install an external requirement into their python environment. One option is to vendor the code in (it looks relatively small).
Easier would be if I could move the
file into a non-namespace package. It appears, though, that our installer script depends on the location of the
file. I could leave the current version of the file as a symlink (or the importable version, for that matter).
Do we have a preference here?
must remain a namespace package; putting an
was the first thing I tried)
Solution B: create
into that package, and replace
with a symlink
Solution C: create
, containing a symlink of
bitter-ability-3219008/02/2022, 9:38 PM
ancient-vegetable-1055608/02/2022, 9:39 PM
bitter-ability-3219008/02/2022, 9:40 PM
ancient-vegetable-1055608/02/2022, 9:41 PM
bitter-ability-3219008/02/2022, 9:42 PM
hundreds-father-40408/02/2022, 9:44 PM
script block this work, particularly because this is for an advanced use case w/ PANTS_SHA
I suspect we will need to rework this script anyways for PyOxyidzer
Note that we required everyone to change their script when Pants switched from Py2 to Py3. Obviously we want to keep disruptions minimal, but it is valid to change the script when necessary
bitter-ability-3219008/02/2022, 9:46 PM
hundreds-father-40408/02/2022, 9:47 PM
the fact that the bootstrapper is in SCCSCC?
bitter-ability-3219008/02/2022, 9:47 PM
ancient-vegetable-1055608/02/2022, 9:47 PM