@@ -64,9 +64,18 @@ commands:
64
64
type : string
65
65
steps :
66
66
- run : |
67
- amazon-linux-extras install python3.8 java-openjdk11 -y
68
- yum install -y git tar gcc gcc-c++ file lsof which procps
69
- ln -s /usr/bin/python3.8 /usr/bin/python3
67
+ amazon-linux-extras install java-openjdk11 -y
68
+ yum install wget make gcc gcc-c++ openssl-devel bzip2-devel libffi-devel zlib-devel file lsof which procps tar git -y
69
+
70
+ cd /tmp
71
+ wget https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tgz
72
+ tar -xvf Python-3.9.6.tgz
73
+ cd Python-3.9.6
74
+ ./configure --enable-optimizations --enable-shared
75
+ make altinstall
76
+ echo "/usr/local/lib" >> /etc/ld.so.conf.d/python3.9.conf
77
+ ldconfig
78
+ ln -s /usr/local/bin/python3.9 /usr/bin/python3
70
79
curl -OL "https://github.com/bazelbuild/bazelisk/releases/download/v1.17.0/bazelisk-linux-<<parameters.bazel-arch>>"
71
80
mv "bazelisk-linux-<<parameters.bazel-arch>>" /usr/local/bin/bazel
72
81
chmod a+x /usr/local/bin/bazel
@@ -126,11 +135,11 @@ commands:
126
135
- install-pip-requirements
127
136
- run : |
128
137
tool/test/start-core-server.sh
129
- python3.8 -m pip install wheel
130
- python3.8 -m pip install --extra-index-url https://repo.typedb.com/public/public-snapshot/python/simple typedb-driver==0.0.0+$(git rev-parse HEAD)
138
+ python3.9 -m pip install wheel
139
+ python3.9 -m pip install --extra-index-url https://repo.typedb.com/public/public-snapshot/python/simple typedb-driver==0.0.0+$(git rev-parse HEAD)
131
140
sleep 5
132
141
pushd python/tests/deployment/
133
- python3.8 -m unittest test && export TEST_SUCCESS=0 || export TEST_SUCCESS=1
142
+ python3.9 -m unittest test && export TEST_SUCCESS=0 || export TEST_SUCCESS=1
134
143
popd
135
144
tool/test/stop-core-server.sh
136
145
exit $TEST_SUCCESS
@@ -139,15 +148,15 @@ commands:
139
148
steps :
140
149
- install-brew-rosetta
141
150
- run : |
142
- /usr/local/bin/brew install python@3.8
151
+ /usr/local/bin/brew install python@3.9
143
152
tool/test/start-core-server.sh
144
- /usr/local/bin/python3.8 -m pip install wheel
145
- /usr/local/bin/python3.8 -m pip install pip==21.3.1
146
- /usr/local/bin/python3.8 -m pip install -r python/requirements_dev.txt
147
- /usr/local/bin/python3.8 -m pip install --extra-index-url https://repo.typedb.com/public/public-snapshot/python/simple typedb-driver==0.0.0+$(git rev-parse HEAD)
153
+ /usr/local/bin/python3.9 -m pip install wheel
154
+ /usr/local/bin/python3.9 -m pip install pip==21.3.1
155
+ /usr/local/bin/python3.9 -m pip install -r python/requirements_dev.txt
156
+ /usr/local/bin/python3.9 -m pip install --extra-index-url https://repo.typedb.com/public/public-snapshot/python/simple typedb-driver==0.0.0+$(git rev-parse HEAD)
148
157
sleep 5
149
158
pushd python/tests/deployment/
150
- /usr/local/bin/python3.8 -m unittest test && export TEST_SUCCESS=0 || export TEST_SUCCESS=1
159
+ /usr/local/bin/python3.9 -m unittest test && export TEST_SUCCESS=0 || export TEST_SUCCESS=1
151
160
popd
152
161
tool/test/stop-core-server.sh
153
162
exit $TEST_SUCCESS
0 commit comments