====== python ====== Python programming language. ===== Information ===== * Version: 3.9 (3.9.19) * Added: October, 2014 * Updated: August, 2024 * Link: https://www.python.org ===== Usage ===== See versions which are available: $ module avail python Load one version into your environment and run it: $ module load python/3.9 $ python -V ===== Installation ====== Notes from the sysadmin during installation: $ cd /tmp $ wget https://www.python.org/ftp/python/3.9.19/Python-3.9.19.tar.xz $ tar xf Python-3.9.19.tar.xz $ cd Python-3.9.19 $ CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition" $ LDFLAGS="$LDFLAGS -fno-semantic-interposition" $ ./configure --prefix=/export/apps/python/3.9 --enable-shared --with-computed-gotos --enable-optimizations --with-lto --enable-ipv6 --with-tzpath=/usr/share/zoneinfo $ chrt -i 0 make -j4 # this make doesn't seem to scale well $ sudo mv /export/apps/python/3.9 /export/apps/python/3.9.bak $ sudo mkdir /export/apps/python/3.9 $ sudo chown aorth /export/apps/python/3.9 $ make install $ make maninstall $ ln -s /export/apps/python/3.9/bin/python3 /export/apps/python/3.9/bin/python $ ln -s /export/apps/python/3.9/share/man/man1/python3.9.1 /export/apps/python/3.9/share/man/man1/python.1 $ ln -s /export/apps/python/3.9/bin/pip3 /export/apps/python/3.9/bin/pip $ sudo chown -R root:root /export/apps/python/3.9 Configure options borrowed from [[https://github.com/archlinux/svntogit-packages/blob/e5ab596d9c13836b894d2d248da7421ae97d0590/trunk/PKGBUILD|Arch Linux's Python package]].