Skip to content

Commit d35f2ff

Browse files
wdironsjjhelmus
authored andcommitted
Treat webencodings like html5lib and bleach
Apply tensorboard commit: tensorflow/tensorboard@6f0a813#diff-169a7c1f7467c03dfccb95cedebad74a for the changes to build_pip_package.sh into tensorboard build.sh This way webencodings will be built into TensorBoard like html5lib and bleach and not be a dependency.
1 parent bd613e6 commit d35f2ff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tensorboard/build.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ mkdir -p tensorboard/_vendor
9696
touch tensorboard/_vendor/__init__.py
9797
cp -LR "${RUNFILES}/org_html5lib/html5lib" tensorboard/_vendor
9898
cp -LR "${RUNFILES}/org_mozilla_bleach/bleach" tensorboard/_vendor
99+
cp -LR "${RUNFILES}/org_pythonhosted_webencodings/webencodings" tensorboard/_vendor
99100
cp -LR "${RUNFILES}/org_tensorflow_serving_api/tensorflow_serving" tensorboard/_vendor
100-
101101
chmod -R u+w,go+r .
102102

103103
find tensorboard -name \*.py |
@@ -106,6 +106,8 @@ find tensorboard -name \*.py |
106106
s/^from html5lib/from tensorboard._vendor.html5lib/
107107
s/^import bleach$/from tensorboard._vendor import bleach/
108108
s/^from bleach/from tensorboard._vendor.bleach/
109+
s/^import webencodings$/from tensorboard._vendor import webencodings/
110+
s/^from webencodings/from tensorboard._vendor.webencodings/
109111
s/from tensorflow_serving/from tensorboard._vendor.tensorflow_serving/
110112
'
111113
# install the package

tensorboard/meta.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ requirements:
4646
- six >={{six}}
4747
- werkzeug >={{werkzeug}}
4848
- futures >=3.1.1 # [py27]
49-
# this one should be vendored. It is a dep of html5lib, which tensorboard vendors.
50-
- webencodings
5149
# reported missing dep on OSX. Apply to all, just to be safe.
5250
- wheel
5351

0 commit comments

Comments
 (0)