Disable tests and remove pip from main python package

This commit is contained in:
2025-05-12 13:40:16 +03:00
parent 0351524a47
commit 1a0b031411
4 changed files with 9 additions and 13 deletions
+2 -2
View File
@@ -1,11 +1,11 @@
name: python3
description: The Python3 interpreter
version: 3.12.2
revision: 3
revision: 4
url: https://www.python.org/
license: PSF-2.0
architecture: any
depends: ["bzip2","expat","gdbm","glibc","libffi","libxcrypt","ncurses","openssl","zlib"]
optional_depends: ["sqlite"]
optional_depends: ["python-pip","sqlite"]
make_depends: ["llvm","sqlite"]
type: source
-3
View File
@@ -1,3 +0,0 @@
[global]
root-user-action = ignore
disable-pip-version-check = true
+7 -8
View File
@@ -18,16 +18,17 @@ build() {
./configure --prefix=/usr \
--enable-shared \
--with-system-expat \
--with-ensurepip \
--without-ensurepip \
--enable-optimizations
make
}
# The check function is executed in the source directory
# This function is used to run tests to verify the package has been compiled correctly
check() {
make test
}
# Temporary disabled due to failing tests
#check() {
#make test
#}
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
@@ -38,10 +39,8 @@ package() {
ln -s python3-config "$BPM_OUTPUT"/usr/bin/python-config
ln -s idle3 "$BPM_OUTPUT"/usr/bin/idle
ln -s pydoc3 "$BPM_OUTPUT"/usr/bin/pydoc
ln -s python${_pybasever}.1 "$BPM_OUTPUT"/usr/share/man/man1/python.1
mkdir -p "$BPM_OUTPUT"/etc
cp ../pip.conf "$BPM_OUTPUT"/etc/pip.conf
ln -s python3.1 "$BPM_OUTPUT"/usr/share/man/man1/python.1
# Install package license
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/python3/LICENSE
}
BIN
View File
Binary file not shown.