-
-
Notifications
You must be signed in to change notification settings - Fork 127
Expand file tree
/
Copy pathpackage.yml
More file actions
77 lines (73 loc) · 2.58 KB
/
package.yml
File metadata and controls
77 lines (73 loc) · 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# yaml-language-server: $schema=/usr/share/ypkg/schema/schema.json
name : python3
version : 3.12.11
release : 77
source :
- https://www.python.org/ftp/python/3.12.11/Python-3.12.11.tar.xz : c30bb24b7f1e9a19b11b55a546434f74e739bb4c271a3e3a80ff4380d49f7adb
homepage : https://www.python.org/
license : Python-2.0
summary :
- Python development environment - 3.12
- test : Python 3.12 Test package
component :
- programming.python
- test : programming.python
- tkinter : programming.python
description: |
The Python 3 package contains the Python development environment. This is useful for object-oriented programming, writing scripts, prototyping large programs or developing entire applications.
optimize :
- speed
networking : true
builddeps :
- pkgconfig(bzip2)
- pkgconfig(harfbuzz) # Fix linking for tkinter
- pkgconfig(libb2)
- pkgconfig(libffi)
- pkgconfig(liblzma)
- pkgconfig(libxcrypt)
- pkgconfig(openssl)
- pkgconfig(sqlite3)
- pkgconfig(tcl)
- pkgconfig(tk)
- pkgconfig(x11)
- db5-devel
- gdbm-devel
rundeps :
- test : python3
- tkinter : python3
patterns :
- devel :
- /usr/bin/*-config
- /usr/lib/python3.*/config-3.*-x86_64-linux-gnu/libpython3.*.a
- test :
- /usr/lib/python3.*/test
- tkinter :
- /usr/lib64/python3.*/lib-dynload/_tkinter.cpython-3*-x86_64-linux-gnu.so*
environment: |
# stolen from Arch's PKGBUILD
export _pybasever=${version%.*}
setup : |
%patch -p1 -i $pkgfiles/Try-to-load-so.avx2-libs-first-if-they-exist-and-cpu.patch
%configure --enable-ipv6=yes \
--enable-loadable-sqlite-extensions \
--enable-optimizations \
--enable-shared \
--with-ensurepip=no \
--with-lto \
--with-system-expat \
--with-system-ffi \
--without-cxx-main \
ax_cv_c_float_words_bigendian=no \
CFLAGS="$CFLAGS -I/usr/include"
build : |
%make
install : |
%make_install
install -Dm00644 Tools/gdb/libpython.py $installdir/usr/share/gdb/auto-load/usr/lib64/libpython3.12.so.1.0-gdb.py
# Unneeded on Linux
find "$installdir" -name '*.exe' -print -delete
ln -s python3 $installdir/usr/bin/python
ln -s python3-config $installdir/usr/bin/python-config
ln -s idle3 $installdir/usr/bin/idle
ln -s pydoc3 $installdir/usr/bin/pydoc
ln -s python${_pybasever}.1 $installdir/usr/share/man/man1/python.1