User Tools

Site Tools


python-software

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
python-software [2015/06/09 14:45] aorthpython-software [2023/06/26 12:02] (current) aorth
Line 4: Line 4:
 ===== Information ===== ===== Information =====
  
-  * Version: 3.4.3+  * Version: 3.9 (3.9.17)
   * Added: October, 2014   * Added: October, 2014
-  * Updated: June, 2015+  * Updated: June, 2023
   * 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.9
 +$ python -V</code>
  
 ===== Installation ====== ===== Installation ======
Line 18: Line 22:
  
 <code>$ cd /tmp <code>$ cd /tmp
-$ wget https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tar.xz +$ wget https://www.python.org/ftp/python/3.9.14/Python-3.9.17.tar.xz 
-$ tar xf Python-3.4.3.tar.xz +$ tar xf Python-3.9.17.tar.xz 
-$ cd Python-3.4.3 +$ cd Python-3.9.17 
-scl enable devtoolset-2 bash +CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition" 
-$ ./configure --prefix=/export/apps/python/3.4.3 --with-threads --with-computed-gotos --enable-ipv6 --with-system-expat --with-system-ffi --with-system-libmpdec --enable-loadable-sqlite-extensions +$ LDFLAGS="$LDFLAGS -fno-semantic-interposition" 
-$ make -j4 +$ ./configure --prefix=/export/apps/python/3.--enable-shared --with-computed-gotos --enable-optimizations --with-lto --enable-ipv6 --with-tzpath=/usr/share/zoneinfo 
-$ sudo mkdir -p /export/apps/python/3.4.3 +chrt -i 0 make -j4 # this make doesn't seem to scale well 
-$ sudo chown -R aorth:aorth /export/apps/python/3.4.3 +$ sudo mv /export/apps/python/3.9 /export/apps/python/3.9.bak 
-$ make install maninstall +$ sudo mkdir /export/apps/python/3.9 
-$ ln -s /export/apps/python/3.4.3/bin/python3 /export/apps/python/3.4.3/bin/python +$ sudo chown aorth /export/apps/python/3.9 
-$ ln -s /export/apps/python/3.4.3/share/man/man1/python3.4.1 /export/apps/python/3.4.3/share/man/man1/python.1 +$ make install 
-$ sudo chown -R root:root /export/apps/python/3.4.3/</code>+$ 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</code>
  
-Configure options borrowed from [[https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/python|Arch Linux's Python package]].+Configure options borrowed from [[https://github.com/archlinux/svntogit-packages/blob/e5ab596d9c13836b894d2d248da7421ae97d0590/trunk/PKGBUILD|Arch Linux's Python package]].
python-software.1433861114.txt.gz · Last modified: 2015/06/09 14:45 by aorth