Skip to content

Commit

Permalink
Merge pull request #1055 from netfs/r1.10
Browse files Browse the repository at this point in the history
Keep pypi package from overwriting TF package
  • Loading branch information
netfs authored Aug 14, 2018
2 parents 7fb55e4 + f66b9fd commit 6e1e9c3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions tensorflow_serving/tools/pip_package/build_pip_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ function main() {
mkdir -p ${TMPDIR}/tensorflow_serving/config
mkdir -p ${TMPDIR}/tensorflow_serving/sources/storage_path
mkdir -p ${TMPDIR}/tensorflow_serving/util
mkdir -p ${TMPDIR}/tensorflow/core/lib/core

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

cp bazel-genfiles/external/org_tensorflow/tensorflow/core/lib/core/*.py \
"${TMPDIR}/tensorflow/core/lib/core"

touch "${TMPDIR}/tensorflow_serving/apis/__init__.py"
touch "${TMPDIR}/tensorflow_serving/config/__init__.py"
touch "${TMPDIR}/tensorflow_serving/sources/__init__.py"
touch "${TMPDIR}/tensorflow_serving/sources/storage_path/__init__.py"
touch "${TMPDIR}/tensorflow_serving/util/__init__.py"
touch "${TMPDIR}/tensorflow_serving/__init__.py"
touch "${TMPDIR}/tensorflow/__init__.py"
touch "${TMPDIR}/tensorflow/core/__init__.py"
touch "${TMPDIR}/tensorflow/core/lib/__init__.py"
touch "${TMPDIR}/tensorflow/core/lib/core/__init__.py"

echo "Adding package setup files"
cp ${PIP_SRC_DIR}/setup.py "${TMPDIR}"
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_serving/tools/pip_package/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
REQUIRED_PACKAGES = [
'tensorflow>=1.2.0,<2',
'grpcio>=1.0<2',
'protobuf==3.6.0',
'protobuf>=3.6.0',
]

setup(
Expand Down

0 comments on commit 6e1e9c3

Please sign in to comment.