aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/python/abuild
blob: 24a05c2e2d1abaa96db3adfefbf4ff4dae98642d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
name=python
version=3.12.5
release=1
source="https://www.$name.org/ftp/$name/$version/Python-$version.tar.xz"
build_opt="--without-ensurepip
	--enable-shared
	--with-system-expat
	--with-system-ffi
	--enable-optimizations"

prebuild() {
	# Remove tests
	rm -rvf Lib/test Lib/*/test Lib/*/tests Lib/*/idle_test
}

postbuild() {
	ln -s python3 $PKG/usr/bin/python
}