Skip to content

Commit f66b9fd

Browse files
gautamvasudevannetfs
authored andcommitted
Keep pypi package from overwriting TF package
PiperOrigin-RevId: 208718607 (cherry picked from commit fc8c530)
1 parent 7fb55e4 commit f66b9fd

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

tensorflow_serving/tools/pip_package/build_pip_package.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ function main() {
3737
mkdir -p ${TMPDIR}/tensorflow_serving/config
3838
mkdir -p ${TMPDIR}/tensorflow_serving/sources/storage_path
3939
mkdir -p ${TMPDIR}/tensorflow_serving/util
40-
mkdir -p ${TMPDIR}/tensorflow/core/lib/core
4140

4241
echo "Adding python files"
4342
cp bazel-genfiles/tensorflow_serving/apis/*_pb2.py \
@@ -58,19 +57,12 @@ function main() {
5857
cp bazel-genfiles/tensorflow_serving/util/*_pb2.py \
5958
"${TMPDIR}/tensorflow_serving/util"
6059

61-
cp bazel-genfiles/external/org_tensorflow/tensorflow/core/lib/core/*.py \
62-
"${TMPDIR}/tensorflow/core/lib/core"
63-
6460
touch "${TMPDIR}/tensorflow_serving/apis/__init__.py"
6561
touch "${TMPDIR}/tensorflow_serving/config/__init__.py"
6662
touch "${TMPDIR}/tensorflow_serving/sources/__init__.py"
6763
touch "${TMPDIR}/tensorflow_serving/sources/storage_path/__init__.py"
6864
touch "${TMPDIR}/tensorflow_serving/util/__init__.py"
6965
touch "${TMPDIR}/tensorflow_serving/__init__.py"
70-
touch "${TMPDIR}/tensorflow/__init__.py"
71-
touch "${TMPDIR}/tensorflow/core/__init__.py"
72-
touch "${TMPDIR}/tensorflow/core/lib/__init__.py"
73-
touch "${TMPDIR}/tensorflow/core/lib/core/__init__.py"
7466

7567
echo "Adding package setup files"
7668
cp ${PIP_SRC_DIR}/setup.py "${TMPDIR}"

tensorflow_serving/tools/pip_package/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
REQUIRED_PACKAGES = [
3535
'tensorflow>=1.2.0,<2',
3636
'grpcio>=1.0<2',
37-
'protobuf==3.6.0',
37+
'protobuf>=3.6.0',
3838
]
3939

4040
setup(

0 commit comments

Comments
 (0)