fix(python<3.8)

This commit is contained in:
Jacob Heider 2023-04-18 16:05:28 -04:00
parent d51c6034aa
commit 94383445ce
No known key found for this signature in database
GPG key ID: A98011B5713535BF

View file

@ -72,6 +72,8 @@ build:
# older versions use a different config dir
if semverator satisfies '<3.8' {{ version }}; then
confdir=$(echo $confdir | sed -e 's/\(config-{{ version.marketing }}\)/\1m/')
# 3.7 and older use `python3.7m` for include dir
SUFFIX=m
fi
# make relocatable
@ -93,9 +95,9 @@ build:
# some stuff expects python includes to be accessible without the prefix
cd include
mv python{{version.marketing}}/* .
rmdir python{{version.marketing}}
ln -s . python{{version.marketing}}
mv python{{version.marketing}}$SUFFIX/* .
rmdir python{{version.marketing}}$SUFFIX
ln -s . python{{version.marketing}}$SUFFIX
env:
ARGS: