Skip to content

Commit 81f43ab

Browse files
committed
Update Python version from 3.6 to 3.7.
1 parent 286e257 commit 81f43ab

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ script:
3232
- cd "$PROJECT_DIR"
3333
- du -sk python/
3434
- cd python
35-
- otool -L bin/python3.6
36-
- cp ./bin/python3.6 ./bin/python3
35+
- otool -L bin/python3.7
36+
- cp ./bin/python3.7 ./bin/python3
3737
- ./bin/python3 -c 'import ssl; print(ssl.OPENSSL_VERSION)'
3838
- ./bin/python3 -m pip --version
3939

4040
# Reduce stand-alone Python and upload it
4141
- cd "$PROJECT_DIR"
4242
- python process_python_build.py "$PROJECT_DIR/python"
43-
- echo "Python 3.6.5" >> ./python/version.txt
43+
- echo "Python 3.7.5" >> ./python/version.txt
4444
- tar czf upload/python3-reduced.tar.gz python/
4545
- curl --upload-file ./upload/python3-reduced.tar.gz https://transfer.sh/python3-reduced.tar.gz | tee -a output_urls.txt && echo "" >> output_urls.txt
4646

build_python.sh

100644100755
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#!/bin/sh
2+
set -e
23

34
alias large_echo='{ set +x; } 2> /dev/null; f(){ echo "#\n#\n# $1\n#\n#"; set -x; }; f'
45

6+
PY_VER=3.7.5
7+
58
large_echo "Check OpenSSL installation path and CWD"
69
if brew ls --versions openssl > /dev/null; then
710
OPENSSL_ROOT="$(brew --prefix openssl)"
@@ -13,12 +16,12 @@ fi
1316
CURRENT_DIR="$PWD"
1417
echo $CURRENT_DIR
1518

16-
large_echo "Download and uncompress Python source"
17-
wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz
18-
tar -zxvf Python-3.6.5.tgz &> /dev/null
19+
large_echo "Download and uncompress Python $PY_VER source"
20+
wget "https://www.python.org/ftp/python/$PY_VER/Python-$PY_VER.tgz"
21+
tar -zxvf "Python-$PY_VER.tgz" &> /dev/null
1922

20-
cd Python-3.6.5
23+
cd "Python-$PY_VER"
2124
large_echo "Configure Python"
22-
./configure MACOSX_DEPLOYMENT_TARGET=10.9 CPPFLAGS="-I$OPENSSL_ROOT/include" LDFLAGS="-L$OPENSSL_ROOT/lib" --prefix="$CURRENT_DIR/python"
25+
./configure MACOSX_DEPLOYMENT_TARGET=10.11 CPPFLAGS="-I$OPENSSL_ROOT/include" LDFLAGS="-L$OPENSSL_ROOT/lib" --prefix="$CURRENT_DIR/python"
2326
large_echo "Build Python"
2427
make altinstall

process_python_build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
VERBOSE = False
1414

1515
# Python version is used for folder names and exec files in built output
16-
VERSION_STR = '3.6'
16+
VERSION_STR = '3.7'
1717
PYTHON_VER = 'python{}'.format(VERSION_STR)
1818

1919
# Set the files and directories we can remove from a Python build folder

0 commit comments

Comments
 (0)