diff --git a/README.md b/README.md index 760c75f..f96c9cb 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,7 @@ Maple Linux is built upon software created by various developers, and is distrib | GNU patch | Free Software Foundation, Inc. | GNU General Public License version 3 | Copyleft | | Perl | Larry Wall and others | GNU General Public License version 1 | Copyleft | | pkgconf | Various | ISC License | Free | +| Python | Python Software Foundation, BeOpen, and CWI | Python Software Foundation License Version 2 | Copyleft | | GNU sed | Free Software Foundation, Inc. | GNU General Public License version 3 | Copyleft | | GNU tar | Free Software Foundation, Inc. | GNU General Public License version 3 | Copyleft | | xz | Various | Mostly BSD 0-Clause license | Slightly Copyleft | diff --git a/STATUS.md b/STATUS.md index 3243aad..387f5c4 100644 --- a/STATUS.md +++ b/STATUS.md @@ -57,6 +57,7 @@ Definitions: | `perl` | Yes | Yes | | `pkgconf` | Yes | Yes | | `pipewire` | +| `python` | Yes | Yes | | `sed` | Yes | Yes | | `shadow` | | `tar` | Yes | Yes | diff --git a/licensebar.svg b/licensebar.svg index 46d4f01..98c5e5e 100644 --- a/licensebar.svg +++ b/licensebar.svg @@ -1,9 +1,9 @@ - - - - - + + + + + diff --git a/sources/python/python.spec b/sources/python/python.spec new file mode 100644 index 0000000..6be6ff0 --- /dev/null +++ b/sources/python/python.spec @@ -0,0 +1,24 @@ +# Maintainer: Alexander Hill +SRC_HASH="00e07d7c0f2f0cc002432d1ee84d2a40dae404a99303e3f97701c10966c91834" +SRC_NAME="python" +SRC_URL="https://www.python.org/ftp/python/3.9.25/Python-3.9.25.tar.xz" +SRC_VERSION="3.9.25" + +# NOTE: Yes, this is end-of-life, but it's the last version of Python that +# supports LibreSSL, so we're stuck with it for now. ~ahill +# See also: https://peps.python.org/pep-0644/ + +build() { + tar xf ../$SRC_FILENAME + cd Python-$SRC_VERSION/ + # NOTE: Python must do some clang-specific checks because it attempts to + # find and link with libclang_rt.profile.a, which unfortunately does + # not exist at the moment. Since it only attempts to link when + # CC=clang, we just override CC for the configuration portion. ~ahill + CC=cc ./configure $TT_AUTOCONF_COMMON --enable-optimizations + make -O -j $TT_PROCS + make -O -j $TT_PROCS install DESTDIR=$TT_INSTALLDIR + # Bad Python! Bad! ~ahill + mv $TT_INSTALLDIR/include/python3.9/* $TT_INSTALLDIR/usr/include/python3.9/ + rm -rf $TT_INSTALLDIR/include +} \ No newline at end of file