Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
classes/pipenv_app_bundle: set sysconfigdata name
Browse files Browse the repository at this point in the history
Some python or distutils update or other changes the way python
calculates the name of the file in which it stores the metadata with
which it was built, which is called _sysconfigdata_some_metadata. Don't
know which update this was or when it happened or indeed what the old
system was, but this is the name of the file that gets built for native
python in current yocto, and prevents an error about not being able to
find _sysconfigdata.py (because that error comes from a try/except meant
to catch even _older_ versions of python that didn't have anything in
the filename) and obscures the actual problem.
  • Loading branch information
sfoster1 committed Mar 2, 2022
1 parent a62c6f8 commit ecd6465
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions classes/pipenv_app_bundle.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ PIPENV_APP_BUNDLE_SOURCE_VENV := "${B}/build-venv"
PIP_ENVARGS := " \
STAGING_INCDIR=${STAGING_INCDIR} \
STAGING_LIBDIR=${STAGING_LIBDIR} \
_PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__linux_x86_64-linux-gnu \
"

python do_rewrite_requirements() {
Expand Down

0 comments on commit ecd6465

Please sign in to comment.