[wasmtime-py] Build wheels for python37 on linux (#310)

This commit is contained in:
Yury Delendik
2019-08-30 02:30:48 -05:00
committed by Till Schneidereit
parent 059c437236
commit eced4dd5ff
2 changed files with 48 additions and 2 deletions

View File

@@ -0,0 +1,32 @@
#!/bin/bash
set -e
# Python 3.6 stands in our way -- nuking it
yum erase -y rh-python36
rm -rf /opt/rh/rh-python36
yum install -y gcc bzip2-devel libffi-devel zlib-devel
cd /usr/src/
# pip3.7 needs new openssl
curl -O -L https://github.com/openssl/openssl/archive/OpenSSL_1_1_1c.tar.gz
tar -zxvf OpenSSL_1_1_1c.tar.gz
cd openssl-OpenSSL_1_1_1c
./Configure shared zlib linux-x86_64
make -sj4
make install
cd ..
rm -rf openssl-OpenSSL_1_1_1c
# Fixing libssl.so.1.1: cannot open shared object file
echo "/usr/local/lib64" >> /etc/ld.so.conf && ldconfig
curl -O -L https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz
tar xzf Python-3.7.3.tgz
cd Python-3.7.3
./configure
make -sj4
make install
cd ..
rm -rf Python-3.7.3