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
Next revisionBoth sides next revision
python-software [2014/10/08 10:31] – created aorthpython-software [2020/04/16 08:36] aorth
Line 1: Line 1:
 ====== python ====== ====== python ======
 +Python programming language.
  
 ===== Information ===== ===== Information =====
  
-  * Version: 2.7.8+  * Version: 3.7 (3.7.7)
   * Added: October, 2014   * Added: October, 2014
 +  * Updated: April, 2020
   * Link: https://www.python.org   * Link: https://www.python.org
  
 ===== Usage ===== ===== Usage =====
  
-=== See versions of python which are available === +See versions of python which are available: 
-<code>module avail python</code>+<code>module avail python</code> 
 + 
 +Load a particular version into your environment and run it: 
 + 
 +<code>$ module load python/3.7 
 +$ 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 wget https://www.python.org/ftp/python/3.7.7/Python-3.7.7.tar.xz 
-tar xf Python-2.7.8.tar.xz +tar xf Python-3.7.7.tar.xz 
-cd Python-2.7.8 +cd Python-3.7.7 
-scl enable devtoolset-1.1 bash +scl enable devtoolset-bash 
-./configure --prefix=/export/apps/python/2.7.8 +./configure --prefix=/export/apps/python/3.7 --enable-shared --with-computed-gotos --enable-optimizations --with-lto --enable-ipv6 
-make -j4 +$ CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition" 
-sudo mkdir /export/apps/python/2.7.8 +$ LDFLAGS="$LDFLAGS -fno-semantic-interposition" 
-sudo chown aorth:aorth /export/apps/python/2.7.8 +$ chrt -i 0 make -j4 
-./python Lib/test/regrtest.py -v +sudo mv /export/apps/python/3.7 /export/apps/python/3.7.2 
-make install +$ sudo mkdir -p /export/apps/python/3.7 
-sudo chown -R root:root /export/apps/python/2.7.8</code>+sudo chown aorth /export/apps/python/3.7 
 +$ make install 
 +$ make maninstall 
 +$ ln -s /export/apps/python/3.7/bin/python3 /export/apps/python/3.7/bin/python 
 +$ ln -s /export/apps/python/3.7/share/man/man1/python3.7.1 /export/apps/python/3.7/share/man/man1/python.1 
 +$ ln -s /export/apps/python/3.7/bin/pip3 /export/apps/python/3.7/bin/pip 
 +sudo chown -R root:root /export/apps/python/3.7 
 +$ sudo rm -rf /export/apps/python/3.7.2</code> 
 + 
 +Configure options borrowed from [[https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/python|Arch Linux's Python package]].
python-software.txt · Last modified: 2023/06/26 12:02 by aorth