Skip to content

Commit 9e72282

Browse files
committed
Build script tidy-up
1 parent 1571ab1 commit 9e72282

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

build.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ fi
1313

1414
ARCH=$( echo "$1" | tr '[:upper:]' '[:lower:]' )
1515
echo $ARCH
16+
mkdir -p wheels
1617

1718
if [[ "${ARCH}" == "amd64" ]]; then
1819
docker build -t tensorflow-builder -f Dockerfile.amd64 --build-arg TENSORFLOW_VERSION=${TENSORFLOW_VERSION} --build-arg BAZEL_VERSION=${BAZEL_VERSION} --build-arg NUMPY_VERSION=${NUMPY_VERSION} .
19-
mkdir -p wheels
2020
docker run --rm -it --mount type=bind,source="$(pwd)"/wheels,target=/host_wheels tensorflow-builder bash -c "cp /wheels/* /host_wheels/"
21-
echo "\nHopefully your package is now in the 'wheels' directory."
2221

2322
else
2423
# Clone Tensorflow repo if it doesn't exist already
@@ -44,4 +43,9 @@ else
4443
if [[ "${ARCH}" == "arm64v8" ]]; then
4544
tensorflow/tools/ci_build/ci_build.sh PI-PYTHON38 tensorflow/tools/ci_build/pi/build_raspberry_pi.sh AARCH64
4645
fi
46+
47+
cd ..
48+
cp tensorflow/output-artifacts/tensorflow-*.whl wheels/
4749
fi
50+
51+
echo "\nYour Tensorflow package should now be in the 'wheels' directory."

0 commit comments

Comments
 (0)