summaryrefslogtreecommitdiff
path: root/repo/core/python.xibuild
blob: 7e7173390ad3065b8594fe05193f1aa42150e9b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

DEPS=(bzip2 expat gdbm libffi libnsl libxcrypt openssl zlib)

SOURCE=https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz
DESC="The Python development environment"

build () {
    ./configure --prefix=/usr --enable-shared --with-system-expat --with-system-ffi --with-ensurepip=yes --enable-optimizations --with-ssl --with-requests
    make
    make DESTDIR=$PKG_DEST install 
}

package () {
    ln -s /usr/bin/python3 $PKG_DEST/usr/bin/python
    ln -s /usr/bin/pip3 $PKG_DEST/usr/bin/pip
}