From c5595d22e4f5010efe140162d6fc04d3f56da859 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Mon, 13 Mar 2023 19:58:22 -0400 Subject: [PATCH] fix(python~3.7) --- projects/python.org/package.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/projects/python.org/package.yml b/projects/python.org/package.yml index 8d9771d0..9aa5ff8e 100644 --- a/projects/python.org/package.yml +++ b/projects/python.org/package.yml @@ -41,6 +41,7 @@ build: tea.xyz/gx/cc: c99 tea.xyz/gx/make: '*' freedesktop.org/pkg-config: ^0.29 + crates.io/semverator: '*' #TODO use the diff #TODO $libdir/_sysconfigdata__darwin_darwin.py contains non-relocatable paths @@ -59,9 +60,15 @@ build: done ln -sf python{{ version.marketing }}-config python-config + # older versions use a different config dir + if semverator satisfies '<3.8' {{ version }}; then + confdir=$(echo $confdir | sed -e 's/\(config-{{ version.marketing }}\)/\1m/') + fi + # make relocatable cd {{prefix}} for binfile in $shebangs $confdir/python-config.py; do + binfile=$(readlink -f $binfile) sed -i.bak -e 's|#!{{ prefix }}/bin/|#!/usr/bin/env |g' $binfile rm $binfile.bak done