Skip to content

Commit dcd0bd9

Browse files
authored
Merge pull request #335 from rasarora/master
Update Standard 4.0, AL2 3.0 with python --enable-shared flag
2 parents ccda2c1 + b320baa commit dcd0bd9

File tree

6 files changed

+30
-4
lines changed

6 files changed

+30
-4
lines changed

al2/x86_64/standard/3.0/Dockerfile

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# Copyright 2020-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
#
3+
# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License.
4+
# A copy of the License is located at
5+
#
6+
# http://aws.amazon.com/asl/
7+
#
8+
# or in the "license" file accompanying this file.
9+
# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied.
10+
# See the License for the specific language governing permissions and limitations under the License.
11+
112
FROM amazonlinux:2 AS core
213

314
ENV EPEL_REPO="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm"
@@ -328,7 +339,7 @@ ENV PYTHON_37_VERSION="3.7.6"
328339
ENV PYTHON_PIP_VERSION=19.3.1
329340

330341
COPY tools/runtime_configs/python/$PYTHON_37_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_37_VERSION
331-
RUN pyenv install $PYTHON_37_VERSION; rm -rf /tmp/*
342+
RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_37_VERSION; rm -rf /tmp/*
332343
RUN pyenv global $PYTHON_37_VERSION
333344
RUN set -ex \
334345
&& pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
@@ -397,7 +408,7 @@ RUN set -ex \
397408
ENV PYTHON_38_VERSION="3.8.1"
398409

399410
COPY tools/runtime_configs/python/$PYTHON_38_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_38_VERSION
400-
RUN pyenv install $PYTHON_38_VERSION; rm -rf /tmp/*
411+
RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_38_VERSION; rm -rf /tmp/*
401412
RUN pyenv global $PYTHON_38_VERSION
402413
RUN set -ex \
403414
&& pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \

al2/x86_64/standard/3.0/tools/runtime_configs/python/3.7.6

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export PYTHON_CONFIGURE_OPTS="\
2+
--enable-shared
23
--enable-loadable-sqlite-extensions"
34

45
# Don't change below this line.

al2/x86_64/standard/3.0/tools/runtime_configs/python/3.8.1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export PYTHON_CONFIGURE_OPTS="\
2+
--enable-shared
23
--enable-loadable-sqlite-extensions"
34

45
# Don't change below this line.

ubuntu/standard/4.0/Dockerfile

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# Copyright 2020-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
#
3+
# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License.
4+
# A copy of the License is located at
5+
#
6+
# http://aws.amazon.com/asl/
7+
#
8+
# or in the "license" file accompanying this file.
9+
# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied.
10+
# See the License for the specific language governing permissions and limitations under the License.
11+
112
FROM ubuntu:18.04 AS core
213

314
ENV DEBIAN_FRONTEND="noninteractive"
@@ -239,7 +250,7 @@ ENV PYTHON_38_VERSION="3.8.1" \
239250
ENV PYTHON_PIP_VERSION=19.3.1
240251

241252
COPY tools/runtime_configs/python/$PYTHON_37_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_37_VERSION
242-
RUN pyenv install $PYTHON_37_VERSION; rm -rf /tmp/*
253+
RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_37_VERSION; rm -rf /tmp/*
243254
RUN pyenv global $PYTHON_37_VERSION
244255
RUN set -ex \
245256
&& pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
@@ -248,7 +259,7 @@ RUN set -ex \
248259

249260

250261
COPY tools/runtime_configs/python/$PYTHON_38_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_38_VERSION
251-
RUN pyenv install $PYTHON_38_VERSION; rm -rf /tmp/*
262+
RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_38_VERSION; rm -rf /tmp/*
252263
RUN pyenv global $PYTHON_38_VERSION
253264
RUN set -ex \
254265
&& pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \

ubuntu/standard/4.0/tools/runtime_configs/python/3.7.6

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export PYTHON_CONFIGURE_OPTS="\
2+
--enable-shared
23
--enable-loadable-sqlite-extensions"
34

45
# Don't change below this line.

ubuntu/standard/4.0/tools/runtime_configs/python/3.8.1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export PYTHON_CONFIGURE_OPTS="\
2+
--enable-shared
23
--enable-loadable-sqlite-extensions"
34

45
# Don't change below this line.

0 commit comments

Comments
 (0)