Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump TF 2.14.0rc0 #1831

Merged
merged 87 commits into from
Dec 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
04011b2
Bump TF 2.14.0rc0
yongtang Aug 18, 2023
c2178ac
Remove 3.7/3.8
yongtang Aug 18, 2023
e862d16
Update
yongtang Aug 18, 2023
a295733
Bump bazel version
yongtang Aug 18, 2023
7d011d5
Add python rules
yongtang Sep 10, 2023
c5fbe9b
Update python
yongtang Sep 10, 2023
50425ff
Update to 2.14
yongtang Sep 27, 2023
1eb9175
Update docs
yongtang Sep 27, 2023
47c217a
Update
yongtang Sep 27, 2023
76138c3
Update to manylinux 2014 container
yongtang Sep 27, 2023
cf9ee45
Bump to 3.9
yongtang Sep 27, 2023
cf7e16a
Update clang flags
yongtang Sep 27, 2023
028dfb7
Update
yongtang Sep 27, 2023
fc9b415
Fix
yongtang Sep 28, 2023
1afae80
Fix
yongtang Sep 28, 2023
bc7d860
Fix
yongtang Sep 28, 2023
07183a4
Fix
yongtang Sep 28, 2023
2d2eb52
Fix
yongtang Sep 29, 2023
8e0d19c
Fix
yongtang Sep 29, 2023
8a795fe
Update and fix
yongtang Oct 6, 2023
da720ff
Add back
yongtang Oct 6, 2023
cc7eceb
Fix
yongtang Oct 6, 2023
83570f3
Update build.yml
yongtang Oct 8, 2023
21c90fe
Update python version
yongtang Oct 27, 2023
2f75c77
Fix
yongtang Oct 27, 2023
e45f070
Only update inside docker
yongtang Oct 27, 2023
4b5bede
Fix
yongtang Oct 27, 2023
993cd39
Fix
yongtang Oct 27, 2023
034dcdc
bump
yongtang Oct 27, 2023
a99dd56
Try
yongtang Oct 28, 2023
a72e427
Try
yongtang Oct 28, 2023
c82f5cb
Update
yongtang Oct 28, 2023
0f866d8
Update
yongtang Oct 28, 2023
14e02b5
Update
yongtang Oct 28, 2023
7864fe4
Need to bring in progress
yongtang Oct 28, 2023
8e7f453
Update
yongtang Oct 28, 2023
faa631a
Update
yongtang Oct 28, 2023
30e7be1
Update
yongtang Oct 28, 2023
6a3d594
Update
yongtang Oct 28, 2023
dfe11a2
Fix
yongtang Oct 30, 2023
c820a57
Fix
yongtang Oct 31, 2023
201d12a
Fix webp
yongtang Oct 31, 2023
e33b9c9
Update permission
yongtang Oct 31, 2023
a5be3a9
Update permission
yongtang Oct 31, 2023
ca7874b
Bump default to python 3.10
yongtang Oct 31, 2023
cbffb79
Fix
yongtang Oct 31, 2023
2bec912
Update
yongtang Oct 31, 2023
1d13c7e
Fix
yongtang Nov 1, 2023
6973f06
Update
yongtang Nov 1, 2023
2442109
Switch to use 3.9
yongtang Nov 1, 2023
b2c9abe
Switch back to 3.10
yongtang Nov 1, 2023
7f54baa
Cleanup
yongtang Nov 5, 2023
a3e728c
Update
yongtang Nov 6, 2023
21c52bc
Fix linux build failure
yongtang Nov 6, 2023
954dd37
Fix
yongtang Nov 6, 2023
eaa710c
Update linux test
yongtang Nov 6, 2023
589ba4e
Update python version
yongtang Nov 6, 2023
880fd7c
Add disutils
yongtang Nov 6, 2023
eec833d
Misc fixes
yongtang Nov 7, 2023
a8dc047
MacOS fix
yongtang Nov 7, 2023
5ff24fd
Remove exposed include path in ubuntu 22.04
yongtang Nov 7, 2023
7daa445
Fix lint
yongtang Nov 7, 2023
1f4c879
Update tests
yongtang Nov 7, 2023
d56d09e
Disable arm64 to get archive in github actions runner.
yongtang Nov 7, 2023
9806d39
Bump version
yongtang Nov 7, 2023
f094205
Use 3.9 to build .so instead
yongtang Nov 8, 2023
1f2f1ba
Revert
yongtang Nov 9, 2023
c656c3c
Add output
yongtang Nov 9, 2023
60faae5
Fix
yongtang Nov 9, 2023
b3567be
Update to use docker build instead
yongtang Dec 5, 2023
b4595bc
Disable optimization
yongtang Dec 5, 2023
c938133
Quiet
yongtang Dec 5, 2023
fe0d1c1
Fix
yongtang Dec 5, 2023
9fd384e
Check symbolic link in build
yongtang Dec 6, 2023
80f0cfe
Remove files not needed
yongtang Dec 6, 2023
dd1f91c
Use crosstool
yongtang Dec 7, 2023
9439379
Add fPIC
yongtang Dec 7, 2023
e2fcedb
Add back "threadproc/unix/signals.c",
yongtang Dec 17, 2023
447bf7a
restore
yongtang Dec 17, 2023
0a9fb8c
restore lint on 20.04
yongtang Dec 17, 2023
0828a18
Update
yongtang Dec 17, 2023
711dff3
Set HAVE_DECL_SYS_SIGLIST to zero
yongtang Dec 17, 2023
28fd2f1
Fix lint
yongtang Dec 17, 2023
6fff276
Remove black
yongtang Dec 17, 2023
5d5c939
Fix
yongtang Dec 17, 2023
6849aa9
Add missing libtinfo5
yongtang Dec 17, 2023
0b918e6
Re-enable arm64 build
yongtang Dec 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.1.1
6.1.0
13 changes: 10 additions & 3 deletions .github/workflows/build.bazel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
set -e -x
set -x


PYTHON=python3
Expand All @@ -30,6 +30,7 @@ if [[ $(uname) == "Linux" ]]; then
curl -sSOL https://github.com/bazelbuild/bazelisk/releases/download/v1.11.0/bazelisk-linux-amd64
mv bazelisk-linux-amd64 /usr/local/bin/bazel
chmod +x /usr/local/bin/bazel
cp -f $(which $PYTHON) /usr/bin/python3
fi

bazel version
Expand All @@ -42,6 +43,7 @@ $PYTHON -m pip --version

$PYTHON -m pip install -q ${TENSORFLOW_INSTALL}
$PYTHON -m pip install -q "urllib3 <2"
$PYTHON -m pip uninstall -y tensorflow-io-gcs-filesystem

$PYTHON tools/build/configure.py

Expand All @@ -53,11 +55,16 @@ bazel build \

rm -rf build && mkdir -p build

if [[ $(uname) == "Linux" ]]; then
cp -r -L bazel-bin/tensorflow_io build/tensorflow_io
cp -r -L bazel-bin/tensorflow_io_gcs_filesystem build/tensorflow_io_gcs_filesystem
else
cp -r bazel-bin/tensorflow_io build/tensorflow_io
cp -r bazel-bin/tensorflow_io_gcs_filesystem build/tensorflow_io_gcs_filesystem
fi

chown -R $(id -nu):$(id -ng) build/tensorflow_io/
chown -R $(id -nu):$(id -ng) build/tensorflow_io_gcs_filesystem/
echo chown -R $(id -nu):$(id -ng) build/tensorflow_io/
echo chown -R $(id -nu):$(id -ng) build/tensorflow_io_gcs_filesystem/
find build/tensorflow_io -name '*runfiles*' | xargs rm -rf
find build/tensorflow_io_gcs_filesystem -name '*runfiles*' | xargs rm -rf

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.space.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#sudo swapoff /swapfile
#sudo rm -rf /swapfile
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc
sudo apt-get remove php* ruby-* subversion mongodb-org -yq >/dev/null 2>&1
#sudo apt-get remove php* ruby-* subversion mongodb-org -yq >/dev/null 2>&1
sudo apt-get autoremove -y >/dev/null 2>&1
sudo apt-get autoclean -y >/dev/null 2>&1
sudo rm -rf /usr/local/lib/android >/dev/null 2>&1
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/build.wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ export TF_USE_MODULAR_FILESYSTEM=1
run_test() {
entry=$1
CPYTHON_VERSION=$($entry -c 'import sys; print(str(sys.version_info[0])+str(sys.version_info[1]))')
TF_VERSION=$(/usr/bin/grep tensorflow tensorflow_io/python/ops/version_ops.py | /usr/bin/cut -d '"' -f 2)
$entry -m pip install $TF_VERSION pytest pytest-benchmark pytest-xdist==2.5.0 boto3 fastavro avro-python3 scikit-image pandas pyarrow==3.0.0 google-cloud-pubsub==2.1.0 google-cloud-bigtable==1.6.0 google-cloud-bigquery-storage==1.1.0 google-cloud-bigquery==2.3.1 google-cloud-storage==1.32.0 PyYAML==5.3.1 azure-storage-blob==12.8.1 azure-cli==2.29.0
$entry -m pip uninstall -y tensorflow_io_gcs_filesystem
(cd wheelhouse && $entry -m pip install tensorflow_io_gcs_filesystem-*-cp${CPYTHON_VERSION}-*.whl)
(cd wheelhouse && $entry -m pip install tensorflow_io-*-cp${CPYTHON_VERSION}-*.whl)
TF_VERSION=$(/usr/bin/grep tensorflow tensorflow_io/python/ops/version_ops.py | /usr/bin/cut -d '"' -f 2)
$entry -m pip install -q $TF_VERSION pytest pytest-benchmark pytest-xdist==2.5.0 boto3 fastavro avro-python3 scikit-image pandas pyarrow==3.0.0 google-cloud-pubsub==2.1.0 google-cloud-bigtable==1.6.0 google-cloud-bigquery-storage==1.1.0 google-cloud-bigquery==2.3.1 google-cloud-storage==1.32.0 PyYAML==5.3.1 azure-storage-blob==12.8.1 azure-cli==2.29.0
$entry -m pip freeze
(cd tests && $entry -m pytest --benchmark-disable -v --import-mode=append --forked --numprocesses=auto --dist loadfile $(find . -type f \( -iname "test_*.py" ! \( -iname "test_standalone_*.py" \) \)))
(cd tests && $entry -m pytest --benchmark-disable -v --import-mode=append $(find . -type f \( -iname "test_standalone_*.py" \)))
}
Expand All @@ -22,10 +24,11 @@ fi

if [[ $(uname) == "Linux" ]]; then
apt-get -y -qq update
if [[ "${PYTHON_VERSION}" == "python3.7" ]]; then
if [[ "${PYTHON_VERSION}" == "python3.9" ]]; then
apt-get install -y -qq software-properties-common
add-apt-repository -y ppa:deadsnakes/ppa
apt-get -y -qq update
apt-get -y -qq install python3.9-distutils
fi
apt-get -y -qq install $PYTHON_VERSION ffmpeg dnsutils libmp3lame0
curl -sSOL https://bootstrap.pypa.io/get-pip.py
Expand Down
83 changes: 47 additions & 36 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ env:
jobs:
lint:
name: Lint
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Run Lint Script for Bazel/Pyupgrade/Black/Clang
run: |
set -x -e
git log --pretty -1
sudo python3 -m pip install -U numpy black pyupgrade
bazel run -s --verbose_failures --experimental_repo_remote_exec //tools/lint:check -- bazel pyupgrade black clang
sudo apt update -y -qq && sudo apt install -y -qq libtinfo5
TF_PYTHON_VERSION=3.10 bazel run -s --verbose_failures --experimental_repo_remote_exec //tools/lint:check -- bazel clang

lint-docs:
name: Lint for Docs
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
EOF
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
with:
python-version: "3.8"
python-version: "3.9"
- name: macOS
run: |
set -x -e
Expand All @@ -80,9 +80,9 @@ jobs:

linux:
name: Linux
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container:
image: ubuntu:20.04
image: ubuntu:22.04
env:
REPO_NAME: ${{ env.REPO_NAME }}
EVENT_NAME: ${{ env.EVENT_NAME }}
Expand All @@ -93,7 +93,7 @@ jobs:
cat > service_account_creds.json << EOF
${{ secrets.GCP_CREDS }}
EOF
- name: Ubuntu 20.04
- name: Ubuntu 22.04
shell: bash
run: |
set -x -e
Expand All @@ -103,7 +103,7 @@ jobs:
fi
apt update
apt-get install -y python3
python3 .github/workflows/build.instruction.py docs/development.md "##### Ubuntu 20.04" > source.sh
python3 .github/workflows/build.instruction.py docs/development.md "##### Ubuntu 22.04" > source.sh
cat source.sh
bash -x -e source.sh

Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:
runs-on: [self-hosted, macOS, ARM64]
strategy:
matrix:
python: ['3.7', '3.8', '3.9', '3.10', '3.11']
python: ['3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
Expand Down Expand Up @@ -185,7 +185,7 @@ jobs:
EOF
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
with:
python-version: "3.8"
python-version: "3.10"
- name: Bazel on macOS
run: |
set -x -e
Expand All @@ -211,7 +211,7 @@ jobs:
runs-on: macOS-11
strategy:
matrix:
python: ['3.7', '3.8', '3.9', '3.10', '3.11']
python: ['3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
Expand Down Expand Up @@ -252,7 +252,7 @@ jobs:
runs-on: macOS-11
strategy:
matrix:
python: ['3.8', '3.9']
python: ['3.9']
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
Expand Down Expand Up @@ -289,12 +289,7 @@ jobs:

linux-bazel:
name: Bazel Linux
runs-on: ubuntu-20.04
container:
image: gcr.io/tensorflow-testing/nosla-ubuntu16.04-manylinux2010
env:
REPO_NAME: ${{ env.REPO_NAME }}
EVENT_NAME: ${{ env.EVENT_NAME }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: GCP
Expand All @@ -305,13 +300,26 @@ jobs:
- name: Bazel on Linux
shell: bash
run: |
set -x -e
export BAZEL_OPTIMIZATION="--config=optimization --config=linux_ci --config=cache"
if [[ "${EVENT_NAME}" == "push" && "${REPO_NAME}" == "tensorflow/io" ]]; then
export BAZEL_OPTIMIZATION="$BAZEL_OPTIMIZATION --remote_upload_local_results=true --google_credentials=service_account_creds.json"
fi
bash -x -e .github/workflows/build.bazel.sh python3.8
sudo cp .bazelrc build/tensorflow_io/
set -x
#export BAZEL_OPTIMIZATION="--config=optimization --config=linux_ci --config=cache"
#if [[ "${{ env.EVENT_NAME }}" == "push" && "${{ env.REPO_NAME }}" == "tensorflow/io" ]]; then
# export BAZEL_OPTIMIZATION="${BAZEL_OPTIMIZATION} --remote_upload_local_results=true --google_credentials=service_account_creds.json"
#fi
docker build -t io -f tools/docker/build.Dockerfile --build-arg PYTHON_VERSION=3.10 --build-arg TENSORFLOW_VERSION=2.14 --build-arg BAZEL_OPTIMIZATION="${BAZEL_OPTIMIZATION}" --progress=plain .
docker create -it --name io io bash
sleep 5
docker cp -L io:/opt/io/bazel-bin build
docker cp -L io:/opt/io/.bazelrc build/tensorflow_io/
sudo chown -R $(id -nu):$(id -ng) .
find build/tensorflow_io -type f
find build/tensorflow_io_gcs_filesystem -type f
find build/tensorflow_io -type l
find build/tensorflow_io_gcs_filesystem -type l
find build/tensorflow_io -name '*runfiles*'
find build/tensorflow_io_gcs_filesystem -name '*runfiles*'
find build/tensorflow_io -name '*runfiles*' | xargs rm -rf
find build/tensorflow_io_gcs_filesystem -name '*runfiles*' | xargs rm -rf
sudo rm -rf build/tensorflow_io/core/golang_ops.h
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: ${{ runner.os }}-bazel-bin
Expand All @@ -325,7 +333,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python: ['3.7', '3.8', '3.9', '3.10', '3.11']
python: ['3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
Expand All @@ -344,7 +352,7 @@ jobs:
set -x -e
ls dist/*
for f in dist/*.whl; do
docker run -i --rm -v $PWD:/v -w /v --net=host quay.io/pypa/manylinux2010_x86_64 bash -x -e /v/tools/build/auditwheel repair --plat manylinux2010_x86_64 $f
docker run -i --rm -v $PWD:/v -w /v --net=host quay.io/pypa/manylinux2014_x86_64 bash -x -e /v/tools/build/auditwheel repair --plat manylinux2014_x86_64 $f
done
sudo chown -R $(id -nu):$(id -ng) .
ls wheelhouse/*
Expand All @@ -356,12 +364,15 @@ jobs:
linux-test:
name: Test ${{ matrix.python }} Linux
needs: linux-wheel
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
python: ['3.8', '3.9']
python: ['3.9']
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
with:
python-version: ${{ matrix.python }}
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
with:
name: ${{ runner.os }}-${{ matrix.python }}-wheel
Expand All @@ -373,20 +384,20 @@ jobs:
bash -x -e tests/test_pulsar/pulsar_test.sh
bash -x -e tests/test_kafka/kafka_test.sh
bash -x -e tests/test_aws/aws_test.sh
bash -x -e tests/test_gcloud/test_pubsub_bigtable.sh
bash -x -e tests/test_prometheus/prometheus_test.sh start
echo bash -x -e tests/test_gcloud/test_pubsub_bigtable.sh
echo bash -x -e tests/test_prometheus/prometheus_test.sh start
bash -x -e tests/test_elasticsearch/elasticsearch_test.sh start
bash -x -e tests/test_mongodb/mongodb_test.sh start
bash -x -e tests/test_azure/start_azure.sh
bash -x -e tests/test_sql/sql_test.sh
bash -x -e tests/test_sql/sql_test.sh postgresql
bash -x -e tests/test_gcloud/test_gcs.sh gcs-emulator
bash -x -e tests/test_hdfs/hdfs_test.sh
- name: Test Linux
run: |
set -x -e
df -h
docker run -i --rm -v $PWD:/v -w /v --net=host \
buildpack-deps:20.04 \
buildpack-deps:22.04 \
bash -x -e .github/workflows/build.wheel.sh python${{ matrix.python }}

windows-bazel:
Expand Down Expand Up @@ -438,7 +449,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
python: ['3.7', '3.8', '3.9', '3.10', '3.11']
python: ['3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
Expand Down Expand Up @@ -469,7 +480,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
python: ['3.8', '3.9']
python: ['3.9']
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
Expand Down Expand Up @@ -789,7 +800,7 @@ jobs:
set -x -e
ls dist/*
for f in dist/*.whl; do
docker run -i --rm -v $PWD:/v -w /v --net=host quay.io/pypa/manylinux2010_x86_64 bash -x -e /v/tools/build/auditwheel repair --plat manylinux2010_x86_64 $f
docker run -i --rm -v $PWD:/v -w /v --net=host quay.io/pypa/manylinux2014_x86_64 bash -x -e /v/tools/build/auditwheel repair --plat manylinux2014_x86_64 $f
done
sudo chown -R $(id -nu):$(id -ng) .
ls wheelhouse/*
Expand Down
36 changes: 29 additions & 7 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,36 @@ switched_rules_by_language(

http_archive(
name = "org_tensorflow",
sha256 = "e58c939079588623e6fa1d054aec2f90f95018266e0a970fd353a5244f5173dc",
strip_prefix = "tensorflow-2.13.0",
sha256 = "ce357fd0728f0d1b0831d1653f475591662ec5bca736a94ff789e6b1944df19f",
strip_prefix = "tensorflow-2.14.0",
urls = [
"https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.13.0.tar.gz",
"https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.14.0.tar.gz",
],
)

http_archive(
name = "rules_python",
sha256 = "84aec9e21cc56fbc7f1335035a71c850d1b9b5cc6ff497306f84cced9a769841",
strip_prefix = "rules_python-0.23.1",
url = "https://github.com/bazelbuild/rules_python/releases/download/0.23.1/rules_python-0.23.1.tar.gz",
)

load("@rules_python//python:repositories.bzl", "python_register_toolchains")
load(
"@org_tensorflow//tensorflow/tools/toolchains/python:python_repo.bzl",
"python_repository",
)

python_repository(name = "python_version_repo")

load("@python_version_repo//:py_version.bzl", "HERMETIC_PYTHON_VERSION")

python_register_toolchains(
name = "python",
ignore_root_user_error = True,
python_version = HERMETIC_PYTHON_VERSION,
)

load("@org_tensorflow//tensorflow:workspace3.bzl", "tf_workspace3")

tf_workspace3()
Expand Down Expand Up @@ -239,11 +262,10 @@ http_archive(
http_archive(
name = "bzip2",
build_file = "//third_party:bzip2.BUILD",
sha256 = "ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269",
strip_prefix = "bzip2-1.0.8",
sha256 = "329e4eb98f6af8d39da05cb51bccec88ae015eac99a42b1ee04dec0af7f4b957",
strip_prefix = "bzip2-bzip2-1.0.8",
urls = [
"https://storage.googleapis.com/mirror.tensorflow.org/sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz",
"https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz",
"https://gitlab.com/bzip2/bzip2/-/archive/bzip2-1.0.8/bzip2-bzip2-1.0.8.tar.gz",
],
)

Expand Down
Loading
Loading