Skip to content

Commit 5f0328d

Browse files
authored
Currency:Updated build-script for jax (#5368)
* Update jax_ubi_9.3.sh * Update jax_ubi_9.3.sh * Update jax_ubi_9.3.sh
1 parent d717a4b commit 5f0328d

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

j/jax/jax_ubi_9.3.sh

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
PACKAGE_NAME=jax
2121
PACKAGE_VERSION=${1:-jax-v0.4.7}
2222
PACKAGE_URL=https://github.com/jax-ml/jax
23-
23+
PACKAGE_DIR=./jax
2424

2525
OS_NAME=$(grep ^PRETTY_NAME /etc/os-release | cut -d= -f2)
2626

@@ -39,11 +39,10 @@ export EXTRA_BAZEL_ARGS="--host_javabase=@local_jdk//:jdk" bash
3939
./compile.sh
4040
#export the path of bazel bin
4141
export PATH=/bazel-6.5.0/output/:$PATH
42-
cd /
42+
cd ..
4343

4444
pip install numpy==1.26.4 scipy opt-einsum==3.3.0 ml-dtypes==0.5.0 absl-py wheel
4545

46-
4746
git clone $PACKAGE_URL
4847
cd $PACKAGE_NAME
4948
git checkout $PACKAGE_VERSION
@@ -52,19 +51,13 @@ if ! python setup.py install ; then
5251
echo "------------------$PACKAGE_NAME:Install_fails-------------------------------------"
5352
echo "$PACKAGE_VERSION $PACKAGE_NAME"
5453
echo "$PACKAGE_NAME | $PACKAGE_VERSION | $OS_NAME | GitHub | Fail | Install_Fails"
55-
exit 1
56-
fi
57-
58-
if ! python setup.py bdist_wheel ; then
59-
echo "------------------$PACKAGE_NAME:wheel_built_fails---------------------"
60-
echo "$PACKAGE_VERSION $PACKAGE_NAME"
61-
echo "$PACKAGE_NAME | $PACKAGE_VERSION | $OS_NAME | GitHub | Fail | wheel_built_fails"
62-
exit 2
54+
exit 1
6355
else
64-
echo "------------------$PACKAGE_NAME:wheel_built_success-------------------------"
56+
echo "------------------$PACKAGE_NAME:Installsuccess-------------------------"
6557
echo "$PACKAGE_VERSION $PACKAGE_NAME"
66-
echo "$PACKAGE_NAME | $PACKAGE_VERSION | $OS_NAME | GitHub | Pass | Wheel_built_success"
67-
exit 0
58+
echo "$PACKAGE_NAME | $PACKAGE_VERSION | $OS_NAME | GitHub | Pass | Install_success"
59+
exit 0
6860
fi
6961

70-
#skipping tests as it requires tensorflow dependency.
62+
63+
#skipping tests as it requires tensorflow dependency.

0 commit comments

Comments
 (0)