This commit is contained in:
pavel.muhortov 2023-03-26 15:15:39 +03:00
parent 67a495341b
commit 39d30bd7bd
2 changed files with 9 additions and 3 deletions

View File

@ -17,7 +17,7 @@ ____
**Dependencies:** **Dependencies:**
> >
> * [bash](https://www.gnu.org/software/bash/) (tested version 5.1.4 on [Debian GNU/Linux 11](http://ftp.debian.org/debian/dists/bullseye/)) > * [bash](https://www.gnu.org/software/bash/) (tested versions: 5.1.4 on [Debian GNU/Linux 11](http://ftp.debian.org/debian/dists/bullseye/), 5.0.17 on [Ubuntu 20](https://wiki.ubuntu.com/FocalFossa/ReleaseNotes), 4.2.46 on [CentOS 7](https://wiki.centos.org/Manuals/ReleaseNotes/CentOS7.2009))
| POSITION | PARAMETERS | DESCRIPTION | DEFAULT | | POSITION | PARAMETERS | DESCRIPTION | DEFAULT |
|-----------|--------------|------------------------|---------------| |-----------|--------------|------------------------|---------------|
@ -30,7 +30,13 @@ Example usage in terminal with make the script executable:
```bash ```bash
wget https://git.hmp.today/pavel.muhortov/utils/raw/branch/master/build-python.sh wget https://git.hmp.today/pavel.muhortov/utils/raw/branch/master/build-python.sh
chmod u+x ./build-python.sh chmod u+x ./build-python.sh
sudo ./build-python.sh qn 3.9.5 ./build-python.log sudo ./build-python.sh - 3.9.5
```
Example usage in terminal without download:
```bash
sudo su - -c "bash <(curl -s https://git.hmp.today/pavel.muhortov/utils/raw/branch/master/build-python.sh) qn 3.9.5 install-python.log"
``` ```
____ ____

View File

@ -147,7 +147,7 @@ downloadcode(){
bulidingcode(){ bulidingcode(){
cd "Python-${subvers}" || execerror "cd" cd "Python-${subvers}" || execerror "cd"
./configure --enable-optimizations --prefix=/usr/local/opt/python-"${version}" ./configure --enable-optimizations --prefix=/usr/local/opt/python-"${version}"
make make clean
} }
####################################### #######################################