User Tools

Site Tools



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/11/01 15:07]
python-software [2021/08/26 08:28] (current)
Line 4: Line 4:
 ===== Information ===== ===== Information =====
-  * Version: 3.(3.7.1)+  * Version: 3.(3.8.11)
   * Added: October, 2014   * Added: October, 2014
-  * Updated: November2018+  * Updated: August2021
   * Link:   * Link:
Line 16: Line 16:
 Load a particular version into your environment and run it: Load a particular version into your environment and run it:
-<code>$ module load python/3.7+<code>$ module load python/3.8
 $ python -V</code> $ python -V</code>
Line 23: Line 23:
 <code>$ cd /tmp <code>$ cd /tmp
-$ wget +$ wget 
-cd Python-3.7.1 +tar xf Python-3.8.11.tar.xz  
-sudo yum install libffi-devel sqlite-devel libuuid-devel tk-devel tcl-devel +cd Python-3.8.11 
-$ sed -i -e "s|testCongestion|disabled_&|" Lib/test/ +scl enable devtoolset-7 bash 
-sed -i -e "s|-flto |-flto=4 |g" configure +$ ./configure --prefix=/export/apps/python/3.--enable-shared --with-computed-gotos --enable-optimizations --with-lto --enable-ipv6 
-$ ./configure --prefix=/export/apps/python/3.--enable-shared --with-computed-gotos --enable-optimizations --with-lto --enable-ipv6 +CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition" 
-$ make -j4 +$ LDFLAGS="$LDFLAGS -fno-semantic-interposition" 
-$ sudo mkdir -p /export/apps/python/3.7 +$ chrt -i 0 make -j4 
-$ sudo chown aorth /export/apps/python/3.7+$ sudo mkdir -p /export/apps/python/3.8 
 +$ sudo chown aorth /export/apps/python/3.8
 $ make install $ make install
 $ make maninstall $ make maninstall
-$ ln -s /export/apps/python/3.7/bin/python3 /export/apps/python/3.7/bin/python +$ ln -s /export/apps/python/3.8/bin/python3 /export/apps/python/3.8/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.8/share/man/man1/python3.8.1 /export/apps/python/3.8/share/man/man1/python.1 
-$ ln -s /export/apps/python/3.7/bin/pip3 /export/apps/python/3.7/bin/pip +$ ln -s /export/apps/python/3.8/bin/pip3 /export/apps/python/3.8/bin/pip 
-$ sudo yum remove libffi-devel sqlite-devel libuuid-devel tk-devel tcl-devel +$ sudo chown -R root:root /export/apps/python/3.8</code>
-$ sudo chown -R root:root /export/apps/python/3.7</code>+
-Configure options borrowed from [[|Arch Linux's Python package]].+Configure options borrowed from [[|Arch Linux's Python package]].
python-software.1541084822.txt.gz · Last modified: 2018/11/01 15:07 by aorth