scripts/termux_step_massage.sh: removing the `python-glibc` file from other packages (#19749)
This commit is contained in:
parent
7cc9ec87d7
commit
ebb7368345
|
@ -115,6 +115,12 @@ termux_step_massage() {
|
|||
done < <(find ./${ADDING_PREFIX}share/man -type l ! -iname \*.gz -print0)
|
||||
fi
|
||||
|
||||
# Remove python-glibc package files that are created
|
||||
# due to its launch during package compilation.
|
||||
if [ "$TERMUX_PACKAGE_LIBRARY" = "glibc" ] && [ "$TERMUX_PKG_NAME" != "python-glibc" ]; then
|
||||
rm -f ./${ADDING_PREFIX}lib/python${TERMUX_PYTHON_VERSION}/__pycache__/{base64,platform,quopri}.cpython-${TERMUX_PYTHON_VERSION//./}.pyc
|
||||
fi
|
||||
|
||||
# Check so files were actually installed. Exclude
|
||||
# share/doc/$TERMUX_PKG_NAME/ as a license file is always
|
||||
# installed there.
|
||||
|
|
|
@ -178,7 +178,7 @@ termux_step_setup_variables() {
|
|||
TERMUX_PKG_GROUPS="" # https://wiki.archlinux.org/title/Pacman#Installing_package_groups
|
||||
TERMUX_PKG_ON_DEVICE_BUILD_NOT_SUPPORTED=false # if the package does not support compilation on a device, then this package should not be compiled on devices
|
||||
TERMUX_PKG_SETUP_PYTHON=false # setting python to compile a package
|
||||
TERMUX_PYTHON_VERSION=$(. $TERMUX_SCRIPTDIR/packages/python/build.sh; echo $_MAJOR_VERSION) # get the latest version of python
|
||||
TERMUX_PYTHON_VERSION=$(. $TERMUX_SCRIPTDIR/$(test "${TERMUX_PACKAGE_LIBRARY}" = "bionic" && echo "packages" || echo "gpkg")/python/build.sh; echo $_MAJOR_VERSION) # get the latest version of python
|
||||
TERMUX_PKG_PYTHON_TARGET_DEPS="" # python modules to be installed via pip3
|
||||
TERMUX_PKG_PYTHON_BUILD_DEPS="" # python modules to be installed via build-pip
|
||||
TERMUX_PKG_PYTHON_COMMON_DEPS="" # python modules to be installed via pip3 or build-pip
|
||||
|
|
Loading…
Reference in New Issue