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
python-software [2018/01/22 16:47]
aorth
python-software [2018/12/12 14:39] (current)
aorth
Line 4: Line 4:
 ===== Information ===== ===== Information =====
  
-  * Version: 3.6.2+  * Version: 3.7 (3.7.1)
   * Added: October, 2014   * Added: October, 2014
-  * Updated: ​September2017+  * Updated: ​November2018
   * Link: https://​www.python.org   * Link: https://​www.python.org
  
Line 14: Line 14:
 <​code>​$ module avail python</​code>​ <​code>​$ module avail python</​code>​
  
-Load a particular version:+Load a particular version ​into your environment and run it:
  
-<​code>​$ module load python/3.6.2</​code>​+<​code>​$ module load python/3.
 +$ python -V</​code>​
  
 ===== Installation ====== ===== Installation ======
Line 22: Line 23:
  
 <​code>​$ cd /tmp <​code>​$ cd /tmp
-$ wget https://​www.python.org/​ftp/​python/​3.6.2/Python-3.6.2.tar.xz +$ wget https://​www.python.org/​ftp/​python/​3.7.1/Python-3.7.1.tar.xz 
-$ tar xf Python-3.6.2.tar.xz +$ tar xf Python-3.7.1.tar.xz 
-$ cd Python-3.6.2 +$ cd Python-3.7.1 
-scl enable devtoolset-4 bash +sudo yum install libffi-devel sqlite-devel libuuid-devel tk-devel tcl-devel 
-$ ./configure --prefix=/​export/​apps/​python/​3.6.2 --enable-shared ​--with-threads ​--with-computed-gotos --enable-optimizations --with-lto --enable-ipv6+$ sed -i -e "​s|testCongestion|disabled_&​|"​ Lib/​test/​test_socket.py 
 +$ sed -i -e "​s|-flto |-flto=|g" configure configure.ac 
 +$ ./configure --prefix=/​export/​apps/​python/​3.--enable-shared --with-computed-gotos --enable-optimizations --with-lto --enable-ipv6
 $ make -j4 $ make -j4
-$ sudo mkdir -p /​export/​apps/​python/​3.6.2 +$ sudo mkdir -p /​export/​apps/​python/​3.7 
-$ sudo chown -R aorth:aorth /​export/​apps/​python/​3.6.2+$ sudo chown aorth /​export/​apps/​python/​3.7
 $ make install $ make install
 $ make maninstall $ make maninstall
-$ ln -s /​export/​apps/​python/​3.6.2/​bin/​python3 /​export/​apps/​python/​3.6.2/​bin/​python +$ ln -s /​export/​apps/​python/​3.7/​bin/​python3 /​export/​apps/​python/​3.7/​bin/​python 
-$ ln -s /​export/​apps/​python/​3.6.2/​share/​man/​man1/​python3.4.1 /​export/​apps/​python/​3.6.2/​share/​man/​man1/​python.1 +$ 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.6.2/bin/pip3 /​export/​apps/​python/​3.6.2/bin/pip +$ 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.6.2</​code>​+$ sudo yum remove libffi-devel sqlite-devel libuuid-devel tk-devel tcl-devel 
 +$ sudo chown -R root:root /​export/​apps/​python/​3.7</​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.1516628827.txt.gz · Last modified: 2018/01/22 16:47 by aorth