File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,17 @@ elif (which python) | grep -q "python"; then
68
68
installed_python=" python"
69
69
fi
70
70
71
+ HERMETIC_PYTHON_VERSION=$( $installed_python -c " import sys; print('.'.join(map(str, sys.version_info[:2])))" )
72
+ export HERMETIC_PYTHON_VERSION
73
+
74
+ echo " TF_VERSION=$TF_VERSION "
75
+ REQUIREMENTS_EXTRA_FLAGS=" --upgrade"
76
+ if [[ " $TF_VERSION " == * " rc" * ]]; then
77
+ REQUIREMENTS_EXTRA_FLAGS=" $REQUIREMENTS_EXTRA_FLAGS --pre"
78
+ fi
79
+
80
+ bazel run //oss_scripts/pip_package:requirements.update -- $REQUIREMENTS_EXTRA_FLAGS
81
+
71
82
TF_ABIFLAG=$( bazel run //oss_scripts/pip_package:tensorflow_build_info -- abi)
72
83
73
84
HEADER_DIR=${TF_CFLAGS: 2}
Original file line number Diff line number Diff line change @@ -13,16 +13,6 @@ if [[ "${osname}" == "darwin" ]]; then
13
13
ext=' ""'
14
14
fi
15
15
16
- HERMETIC_PYTHON_VERSION=$( $installed_python -c " import sys; print('.'.join(map(str, sys.version_info[:2])))" )
17
- export HERMETIC_PYTHON_VERSION
18
-
19
-
20
- echo " TF_VERSION=$TF_VERSION "
21
- REQUIREMENTS_EXTRA_FLAGS=" --upgrade"
22
- if [[ " $TF_VERSION " == * " rc" * ]]; then
23
- REQUIREMENTS_EXTRA_FLAGS=" $REQUIREMENTS_EXTRA_FLAGS --pre"
24
- fi
25
-
26
16
bazel run //oss_scripts/pip_package:requirements.update -- $REQUIREMENTS_EXTRA_FLAGS
27
17
28
18
# Update setup.nightly.py with current tf version.
You can’t perform that action at this time.
0 commit comments