[New-bugs-announce] [issue36733] make regen-all doesn't work in subfolder: No module named Parser.pgen
Miro Hrončok
report at bugs.python.org
Fri Apr 26 06:17:42 EDT 2019
New submission from Miro Hrončok <miro at hroncok.cz>:
When I attempt to build CPython from a subfolder (as we do in Fedora) make regen-all dies with:
python3.8 -m Parser.pgen ../../Grammar/Grammar \
../../Grammar/Tokens \
../../Include/graminit.h.new \
../../Python/graminit.c.new
/usr/bin/python3.8: No module named Parser.pgen
To reproduce, run:
$ rm -rf build && mkdir -p build/mybuild && (cd build/mybuild && ../../configure && make regen-all)
This is probably a regression, as it works in the 3.7 branch.
Setting PYTHON_FOR_REGEN="python3" (python3.7 on my system) doesn't make a difference:
python3 -m Parser.pgen ../../Grammar/Grammar \
../../Grammar/Tokens \
../../Include/graminit.h.new \
../../Python/graminit.c.new
/usr/bin/python3: No module named Parser.pgen
build/mybuild/Parser exists but it is empty directory.
Setting PYTHON_FOR_REGEN="PYTHOINPATH=<path_to_sources> python3" workarounds the issue.
On branch 3.7 (3076a3e0d1), build/mybuild/Parser is also empty, but the make-regen populates it.
I'll bisect.
----------
components: Build
messages: 340902
nosy: hroncok, vstinner
priority: normal
severity: normal
status: open
title: make regen-all doesn't work in subfolder: No module named Parser.pgen
versions: Python 3.8, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36733>
_______________________________________
More information about the New-bugs-announce
mailing list