User Tools

Site Tools


qLinux


<< Prev
Tcl-8.6.12

Next >>
Meson-0.61.1


Python-3.10.2

Reference: 8.50. Python-3.10.2. Download: Python-3.10.2.tar.xz. Python is required by meson. Apply a patch to fix the core build system:

patch -Np1 -i python-3.10.2-bld-20220329.patch

Apply a patch to configure to find openssl in  /libs :

patch -Np1 -i python-3.10.2-bld-ssl-20220329.patch

Fix an issue with installer that zlib was not found:

sed -i '/#zlib/s|include|inc|1; /#zlib/s|^#zlib|zlib|1' Modules/Setup

Apply a patch to fix the sources:

patch -Np1 -i python-3.10.2-src-20220329.patch

Configure python:

./configure --prefix=/plng/pkg/python/3.10.2 \
            --oldincludedir=/qlnx/inc \
            --includedir=/plng/pkg/python/3.10.2/inc \
            --mandir=/plng/pkg/python/3.10.2/man \
            --docdir=/tmp \
            CFLAGS="-I/xsys/inc" \
            --enable-shared \
            --with-ensurepip=install \
            --with-system-ffi \
            --enable-optimizations \
            --with-tzpath=/qlnx/dat/zoneinfo

CFLAGS=“-I/xsys/inc”
    Find the headers for X11, required to build module _tkinter.

Build and install the package:

make
make install

At the end of install a message from the pip occurs which is harmless. Unfortunately upstream was not very supportive to eliminate it.

cd /plng/pkg/python/ && ln -sfv 3.10.2 current
ln -sfv /plng/pkg/python/current/bin/* /plng/bin/
ln -sfv /plng/pkg/python/current/inc/python3.10 /plng/inc/
ln -sfv /plng/pkg/python/current/man/man1/* /plng/man/man1/
ln -sfv /plng/pkg/python/current/lib/python3.10 /plng/lib/
ln -sfv /plng/pkg/python/current/lib/pkgconfig/* /plng/lib/pkgconfig/

<< Prev
Tcl-8.6.12

Next >>
Meson-0.61.1