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
Next revision Both sides next revision
python-software [2019/01/20 09:51]
aorth
python-software [2021/05/05 10:58]
aorth
Line 4: Line 4:
 ===== Information ===== ===== Information =====
  
-  * Version: 3.7 (3.7.2)+  * Version: 3.7 (3.7.7)
   * Added: October, 2014   * Added: October, 2014
-  * Updated: January2019+  * Updated: April2020
   * Link: https://www.python.org   * Link: https://www.python.org
  
Line 23: Line 23:
  
 <code>$ cd /tmp <code>$ cd /tmp
-$ wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz +$ wget https://www.python.org/ftp/python/3.7.7/Python-3.7.7.tar.xz 
-$ tar xf Python-3.7.2.tar.xz +$ tar xf Python-3.7.7.tar.xz 
-$ cd Python-3.7.2 +$ cd Python-3.7.7 
-sudo yum install libffi-devel sqlite-devel libuuid-devel tk-devel tcl-devel bzip2-devel xz-devel ncurses-devel readline-devel +scl enable devtoolset-7 bash
-$ sed -i -e "s|testCongestion|disabled_&|" Lib/test/test_socket.py +
-$ sed -i -e "s|-flto |-flto=4 |g" configure configure.ac+
 $ ./configure --prefix=/export/apps/python/3.7 --enable-shared --with-computed-gotos --enable-optimizations --with-lto --enable-ipv6 $ ./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 mv /export/apps/python/3.7 /export/apps/python/3.7.1+$ LDFLAGS="$LDFLAGS -fno-semantic-interposition" 
 +$ chrt -i 0 make -j4 
 +$ sudo mv /export/apps/python/3.7 /export/apps/python/3.7.2
 $ sudo mkdir -p /export/apps/python/3.7 $ sudo mkdir -p /export/apps/python/3.7
 $ sudo chown aorth /export/apps/python/3.7 $ sudo chown aorth /export/apps/python/3.7
Line 39: Line 39:
 $ 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/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 $ ln -s /export/apps/python/3.7/bin/pip3 /export/apps/python/3.7/bin/pip
-$ sudo yum remove libffi-devel sqlite-devel libuuid-devel tk-devel tcl-devel bzip2-devel xz-devel ncurses-devel readline-devel +$ sudo chown -R root:root /export/apps/python/3.7 
-$ sudo chown -R root:root /export/apps/python/3.7</code>+$ 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/08/26 08:28 by aorth