Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions recipes/python/python3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,16 @@ multiPackage:
autotoolsPackageDev
mkdir -p usr/lib/python${MAJOR_MINOR}
cp $1/install/usr/lib/python${MAJOR_MINOR}/_sysconfigdata_*.py usr/lib/python${MAJOR_MINOR}
# remove any absolute include-/library-paths
sed -E -e "s|-[LI]/[^ ']+||" usr/lib/python${MAJOR_MINOR}/_sysconfigdata_*.py
# Remove any absolute include-/library-paths and make the
# data relocatable...
sed -i -E \
-e '1i prefix = "/".join(__file__.split("/")[:-3])' \
-e "s|-[LI]/[^ ']*||g" \
-e "/DESTDIRS/b" \
-e "/INCLDIRSTOMAKE/b" \
-e "/TZPATH/b" \
-e "s|'/usr|prefix + '|" \
usr/lib/python${MAJOR_MINOR}/_sysconfigdata_*.py
python3 -m compileall usr/lib/python${MAJOR_MINOR}
provideDeps: [ "*-dev" ]

Expand Down