Uh oh!
There was an error while loading. Please reload this page.
bpo-36733: Fix PYTHONPATH for make regen-add - #12969
Conversation
Add PYTHONPATH=$(srcdir) to run $(PYTHON_FOR_REGEN) -m Parser.pgen, so it's possible to build Python from a different directory.
hroncok
commented
Apr 26, 2019
This is more likely a workaround. Let me see what changed the behavior before we jump to this solution. |
vstinner
commented
Apr 26, 2019
Why? For me, it's the right fix.
Previously (1 month ago?), make regen-all didn't use Parser.pgen: https://bugs.python.org/issue36733#msg340903 |
hroncok
commented
Apr 26, 2019
I take my statement back. This is the a proper solution, we don't need to copy around pure Python code just to be able to import it. What keeps me confused is the empty Parser directory created by configure. Should it no longer be created? |
vstinner
commented
Apr 26, 2019
Thanks for the review.
configure creates the empty mybuild/Parser subdirectory. I don't know why. At least, it doesn't prevent to build Python :-) |
Add PYTHONPATH=$(srcdir) to run $(PYTHON_FOR_REGEN) -m Parser.pgen,
so it's possible to build Python from a different directory.
https://bugs.python.org/issue36733