mirror of
https://github.com/ivabus/pantry
synced 2024-11-30 04:05:06 +03:00
fix(python~3.7)
This commit is contained in:
parent
3e28b85774
commit
c5595d22e4
1 changed files with 7 additions and 0 deletions
|
@ -41,6 +41,7 @@ build:
|
||||||
tea.xyz/gx/cc: c99
|
tea.xyz/gx/cc: c99
|
||||||
tea.xyz/gx/make: '*'
|
tea.xyz/gx/make: '*'
|
||||||
freedesktop.org/pkg-config: ^0.29
|
freedesktop.org/pkg-config: ^0.29
|
||||||
|
crates.io/semverator: '*'
|
||||||
|
|
||||||
#TODO use the diff
|
#TODO use the diff
|
||||||
#TODO $libdir/_sysconfigdata__darwin_darwin.py contains non-relocatable paths
|
#TODO $libdir/_sysconfigdata__darwin_darwin.py contains non-relocatable paths
|
||||||
|
@ -59,9 +60,15 @@ build:
|
||||||
done
|
done
|
||||||
ln -sf python{{ version.marketing }}-config python-config
|
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
|
# make relocatable
|
||||||
cd {{prefix}}
|
cd {{prefix}}
|
||||||
for binfile in $shebangs $confdir/python-config.py; do
|
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
|
sed -i.bak -e 's|#!{{ prefix }}/bin/|#!/usr/bin/env |g' $binfile
|
||||||
rm $binfile.bak
|
rm $binfile.bak
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue