mirror of
https://codeberg.org/kiss-community/repo
synced 2025-01-03 00:20:09 -07:00
python: Revert auto rebuilding osubpackages.
This commit is contained in:
parent
6a947fad90
commit
18b1fb4a78
extra/python
@ -8,24 +8,3 @@ make
|
||||
make DESTDIR="$1" install
|
||||
|
||||
ln -s python3 "$1/usr/bin/python"
|
||||
|
||||
# Rebuild all python subpackages if required.
|
||||
{
|
||||
# Exit here if python is not installed.
|
||||
command -v python3 >/dev/null || exit 0
|
||||
|
||||
# Figure out the system's python version.
|
||||
python_sys=$(kiss l python)
|
||||
python_sys=${python_sys#* }
|
||||
python_sys=${python_sys#?.}
|
||||
python_sys=${python_sys%.*}
|
||||
|
||||
# Figure out this python version.
|
||||
read -r python_repo _ < "${0%/*}/version"
|
||||
python_repo=${python_repo#?.}
|
||||
python_repo=${python_repo%.*}
|
||||
|
||||
# If the two python versions differ, tell post-install to rebuild.
|
||||
[ "$python_sys" = "$python_repo" ] ||
|
||||
:>/tmp/python-REBUILD
|
||||
}
|
||||
|
@ -1,15 +0,0 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
[ -f /tmp/python-REBUILD ] || exit 0
|
||||
|
||||
rm -f /tmp/python-REBUILD
|
||||
|
||||
# Rebuild all python subpackages if the above file existed.
|
||||
kiss l | while read -r pkg _; do
|
||||
case $pkg in
|
||||
python-*)
|
||||
kiss build "$pkg"
|
||||
kiss install "$pkg"
|
||||
;;
|
||||
esac
|
||||
done
|
@ -1 +1 @@
|
||||
3.6.8 2
|
||||
3.6.8 3
|
||||
|
Loading…
Reference in New Issue
Block a user