User Tools

Site Tools


python-software

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
python-software [2014/10/08 10:31] – created aorthpython-software [2025/02/28 14:01] (current) aorth
Line 1: Line 1:
 ====== python ====== ====== python ======
 +Python programming language. Standalone python for use with environment modules that need something other than the system's Python.
  
 ===== Information ===== ===== Information =====
  
-  * Version: 2.7.8+  * Version: 3.10 (3.10.16)
   * Added: October, 2014   * Added: October, 2014
 +  * Updated: February, 2025
   * Link: https://www.python.org   * Link: https://www.python.org
  
 ===== Usage ===== ===== Usage =====
  
-=== See versions of python which are available === +See versions which are available: 
-<code>module avail python</code>+<code>module avail python</code> 
 + 
 +Load one version into your environment and run it: 
 +<code>$ module load python/3.10 
 +$ python -V</code>
  
 ===== Installation ====== ===== Installation ======
 Notes from the sysadmin during installation: Notes from the sysadmin during installation:
  
-<code>cd /tmp +<code>cd /tmp 
-wget https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tar.xz +wget https://www.python.org/ftp/python/3.10.16/Python-3.10.16.tar.xz 
-tar xf Python-2.7.8.tar.xz +tar xf Python-3.10.16.tar.xz 
-cd Python-2.7.8 +cd Python-3.10.16 
-scl enable devtoolset-1.1 bash +$ CFLAGS="${CFLAGS/-O2/-O3} -ffat-lto-objects" 
-./configure --prefix=/export/apps/python/2.7.8 +./configure --prefix=/export/apps/python/3.10 --enable-shared --with-computed-gotos --enable-optimizations --with-lto --enable-ipv6 --with-tzpath=/usr/share/zoneinfo 
-make -j4 +$ chrt -i 0 make -j4 # this make doesn't seem to scale well 
-sudo mkdir /export/apps/python/2.7.8 +sudo mkdir /export/apps/python/3.10 
-sudo chown aorth:aorth /export/apps/python/2.7.8 +sudo chown aorth /export/apps/python/3.10 
-./python Lib/test/regrtest.py -v +$ make install 
-make install +$ make maninstall 
-sudo chown -R root:root /export/apps/python/2.7.8</code>+$ ln -s /export/apps/python/3.10/bin/python3 /export/apps/python/3.10/bin/python 
 +$ ln -s /export/apps/python/3.10/share/man/man1/python3.10.1 /export/apps/python/3.10/share/man/man1/python.
 +$ ln -s /export/apps/python/3.10/bin/pip3 /export/apps/python/3.10/bin/pip 
 +$ ln -s /export/apps/python/3.10/bin/idle3 /export/apps/python/3.10/bin/idle 
 +$ ln -s /export/apps/python/3.10/bin/python3-config /export/apps/python/3.10/bin/python-config 
 +$ ln -s /export/apps/python/3.10/bin/pydoc3 /export/apps/python/3.10/bin/pydoc 
 +sudo chown -R root:root /export/apps/python/3.10</code> 
 + 
 +Configure options borrowed from [[https://github.com/archlinux/svntogit-packages/blob/6c31fae6d6685dc5593342377fef6320f68ce50e/python/trunk/PKGBUILD|Arch Linux's Python package]].
python-software.1412764292.txt.gz · Last modified: by aorth