Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 601826805
  • Loading branch information
ml-metadata-team authored and tfx-copybara committed Jan 26, 2024
1 parent f737be0 commit 573c60d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
9 changes: 0 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,6 @@ version: '3.1'
# We mount the MLMD project root at /build (which is the WORKDIR of the image)
# in the container.
services:
manylinux-python38:
image: mlmd-build:manylinux2010
build:
context: .
dockerfile: ml_metadata/tools/docker_build/Dockerfile.manylinux2010
environment:
PYTHON_VERSION: 38
volumes:
- .:/build:delegated
manylinux-python39:
image: mlmd-build:manylinux2010
build:
Expand Down
8 changes: 3 additions & 5 deletions ml_metadata/tools/docker_build/build_manylinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,17 @@ function setup_environment() {
source scl_source enable devtoolset-8
source scl_source enable rh-python38
if [[ -z "${PYTHON_VERSION}" ]]; then
echo "Must set PYTHON_VERSION env to 38|39|310|311|"; exit 1;
echo "Must set PYTHON_VERSION env to 39|310|311|"; exit 1;
fi
# Bazel will use PYTHON_BIN_PATH to determine the right python library.
if [[ "${PYTHON_VERSION}" == 38 ]]; then
PYTHON_DIR=/opt/python/cp38-cp38
elif [[ "${PYTHON_VERSION}" == 39 ]]; then
if [[ "${PYTHON_VERSION}" == 39 ]]; then
PYTHON_DIR=/opt/python/cp39-cp39
elif [[ "${PYTHON_VERSION}" == 310 ]]; then
PYTHON_DIR=/opt/python/cp310-cp310
elif [[ "${PYTHON_VERSION}" == 311 ]]; then
PYTHON_DIR=/opt/python/cp311-cp311
else
echo "Must set PYTHON_VERSION env to 38|39|310|311|"; exit 1;
echo "Must set PYTHON_VERSION env to 39|310|311|"; exit 1;
fi
export PIP_BIN="${PYTHON_DIR}"/bin/pip
export PYTHON_BIN_PATH="${PYTHON_DIR}"/bin/python
Expand Down

0 comments on commit 573c60d

Please sign in to comment.