mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
fix(python<3.8)
This commit is contained in:
parent
d51c6034aa
commit
94383445ce
1 changed files with 5 additions and 3 deletions
|
@ -72,6 +72,8 @@ build:
|
||||||
# older versions use a different config dir
|
# older versions use a different config dir
|
||||||
if semverator satisfies '<3.8' {{ version }}; then
|
if semverator satisfies '<3.8' {{ version }}; then
|
||||||
confdir=$(echo $confdir | sed -e 's/\(config-{{ version.marketing }}\)/\1m/')
|
confdir=$(echo $confdir | sed -e 's/\(config-{{ version.marketing }}\)/\1m/')
|
||||||
|
# 3.7 and older use `python3.7m` for include dir
|
||||||
|
SUFFIX=m
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# make relocatable
|
# make relocatable
|
||||||
|
@ -93,9 +95,9 @@ build:
|
||||||
|
|
||||||
# some stuff expects python includes to be accessible without the prefix
|
# some stuff expects python includes to be accessible without the prefix
|
||||||
cd include
|
cd include
|
||||||
mv python{{version.marketing}}/* .
|
mv python{{version.marketing}}$SUFFIX/* .
|
||||||
rmdir python{{version.marketing}}
|
rmdir python{{version.marketing}}$SUFFIX
|
||||||
ln -s . python{{version.marketing}}
|
ln -s . python{{version.marketing}}$SUFFIX
|
||||||
|
|
||||||
env:
|
env:
|
||||||
ARGS:
|
ARGS:
|
||||||
|
|
Loading…
Reference in a new issue