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 revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
python-software [2015/06/09 14:45]
aorth
python-software [2021/05/05 10:58]
aorth
Line 4: Line 4:
 ===== Information ===== ===== Information =====
  
-  * Version: 3.4.3+  * Version: 3.7 (3.7.7)
   * Added: October, 2014   * Added: October, 2014
-  * Updated: June2015+  * Updated: April2020
   * 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 ======
Line 18: Line 23:
  
 <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.7.7/Python-3.7.7.tar.xz 
-$ tar xf Python-3.4.3.tar.xz +$ tar xf Python-3.7.7.tar.xz 
-$ cd Python-3.4.3 +$ cd Python-3.7.7 
-$ scl enable devtoolset-bash +$ scl enable devtoolset-bash 
-$ ./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 +$ ./configure --prefix=/export/apps/python/3.--enable-shared --with-computed-gotos --enable-optimizations --with-lto --enable-ipv6 
-$ make -j4 +$ CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition" 
-$ sudo mkdir -p /export/apps/python/3.4.3 +$ LDFLAGS="$LDFLAGS -fno-semantic-interposition" 
-$ sudo chown -R aorth:aorth /export/apps/python/3.4.3 +chrt -i 0 make -j4 
-$ make install maninstall +$ sudo mv /export/apps/python/3.7 /export/apps/python/3.7.2 
-$ ln -s /export/apps/python/3.4.3/bin/python3 /export/apps/python/3.4.3/bin/python +$ sudo mkdir -p /export/apps/python/3.7 
-$ 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 +$ sudo chown aorth /export/apps/python/3.7 
-$ sudo chown -R root:root /export/apps/python/3.4.3/</code>+$ 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.
 +$ 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]]. 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: 2021/05/05 12:27 by aorth