File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -32,15 +32,15 @@ script:
32
32
- cd "$PROJECT_DIR"
33
33
- du -sk python/
34
34
- 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
37
37
- ./bin/python3 -c 'import ssl; print(ssl.OPENSSL_VERSION)'
38
38
- ./bin/python3 -m pip --version
39
39
40
40
# Reduce stand-alone Python and upload it
41
41
- cd "$PROJECT_DIR"
42
42
- 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
44
44
- tar czf upload/python3-reduced.tar.gz python/
45
45
- curl --upload-file ./upload/python3-reduced.tar.gz https://transfer.sh/python3-reduced.tar.gz | tee -a output_urls.txt && echo "" >> output_urls.txt
46
46
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
+ set -e
2
3
3
4
alias large_echo=' { set +x; } 2> /dev/null; f(){ echo "#\n#\n# $1\n#\n#"; set -x; }; f'
4
5
6
+ PY_VER=3.7.5
7
+
5
8
large_echo " Check OpenSSL installation path and CWD"
6
9
if brew ls --versions openssl > /dev/null; then
7
10
OPENSSL_ROOT=" $( brew --prefix openssl) "
13
16
CURRENT_DIR=" $PWD "
14
17
echo $CURRENT_DIR
15
18
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
19
22
20
- cd Python-3.6.5
23
+ cd " Python-$PY_VER "
21
24
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"
23
26
large_echo " Build Python"
24
27
make altinstall
Original file line number Diff line number Diff line change 13
13
VERBOSE = False
14
14
15
15
# Python version is used for folder names and exec files in built output
16
- VERSION_STR = '3.6 '
16
+ VERSION_STR = '3.7 '
17
17
PYTHON_VER = 'python{}' .format (VERSION_STR )
18
18
19
19
# Set the files and directories we can remove from a Python build folder
You can’t perform that action at this time.
0 commit comments