This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hroncok
Recipients hroncok, vstinner
Date 2019-04-26.10:17:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1556273862.71.0.703011468281.issue36733@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-04-26 10:17:42hroncoksetrecipients: + hroncok, vstinner
2019-04-26 10:17:42hroncoksetmessageid: <1556273862.71.0.703011468281.issue36733@roundup.psfhosted.org>
2019-04-26 10:17:42hroncoklinkissue36733 messages
2019-04-26 10:17:42hroncokcreate