@@ -268,23 +268,23 @@ depending on the provided name, package will be created, e.g:
268
268
269
269
To build tensorflow CPU package:
270
270
<pre class =" devsite-terminal devsite-click-to-copy " >
271
- bazel build //tensorflow/tools/pip_package:wheel --repo_env=WHEEL_NAME=tensorflow_cpu
271
+ bazel build //tensorflow/tools/pip_package:wheel --repo_env=USE_PYWRAP_RULES=1 --repo_env= WHEEL_NAME=tensorflow_cpu
272
272
</pre >
273
273
274
274
To build tensorflow GPU package:
275
275
<pre class =" devsite-terminal devsite-click-to-copy " >
276
- bazel build //tensorflow/tools/pip_package:wheel --repo_env=WHEEL_NAME=tensorflow --config=cuda --config=cuda_wheel
276
+ bazel build //tensorflow/tools/pip_package:wheel --repo_env=USE_PYWRAP_RULES=1 --repo_env= WHEEL_NAME=tensorflow --config=cuda --config=cuda_wheel
277
277
</pre >
278
278
279
279
To build tensorflow TPU package:
280
280
<pre class =" devsite-terminal devsite-click-to-copy " >
281
- bazel build //tensorflow/tools/pip_package:wheel --repo_env=WHEEL_NAME=tensorflow_tpu --config=tpu
281
+ bazel build //tensorflow/tools/pip_package:wheel --repo_env=USE_PYWRAP_RULES=1 --repo_env= WHEEL_NAME=tensorflow_tpu --config=tpu
282
282
</pre >
283
283
284
284
To build nightly package, set ` tf_nightly ` instead of ` tensorflow ` , e.g.
285
285
to build CPU nightly package:
286
286
<pre class =" devsite-terminal devsite-click-to-copy " >
287
- bazel build //tensorflow/tools/pip_package:wheel --repo_env=WHEEL_NAME=tf_nightly_cpu
287
+ bazel build //tensorflow/tools/pip_package:wheel --repo_env=USE_PYWRAP_RULES=1 --repo_env= WHEEL_NAME=tf_nightly_cpu
288
288
</pre >
289
289
290
290
As a result, generated wheel will be located in
@@ -354,7 +354,10 @@ virtual environment:
354
354
<pre class =" devsite-disable-click-to-copy prettyprint lang-bsh " >
355
355
<code class =" devsite-terminal tfo-terminal-root " >./configure # if necessary</code >
356
356
357
- <code class =" devsite-terminal tfo-terminal-root " >bazel build //tensorflow/tools/pip_package:wheel --repo_env=WHEEL_NAME=tensorflow_cpu --config=opt</code >
357
+ <code class =" devsite-terminal tfo-terminal-root " >
358
+ bazel build //tensorflow/tools/pip_package:wheel \
359
+ --repo_env=USE_PYWRAP_RULES=1 --repo_env=WHEEL_NAME=tensorflow_cpu --config=opt
360
+ </code >
358
361
`
359
362
<code class =" devsite-terminal tfo-terminal-root " >chown $HOST_PERMS bazel-bin/tensorflow/tools/pip_package/wheel_house/tensorflow-<var >version</var >-<var >tags</var >.whl</code >
360
363
</pre >
@@ -405,7 +408,11 @@ with GPU support:
405
408
<pre class =" devsite-disable-click-to-copy prettyprint lang-bsh " >
406
409
<code class =" devsite-terminal tfo-terminal-root " >./configure # if necessary</code >
407
410
408
- <code class =" devsite-terminal tfo-terminal-root " >bazel build //tensorflow/tools/pip_package:wheel --repo_env=WHEEL_NAME=tensorflow --config=cuda --config=cuda_wheel --config=opt</code >
411
+ <code class =" devsite-terminal tfo-terminal-root " >
412
+ bazel build //tensorflow/tools/pip_package:wheel \
413
+ --repo_env=USE_PYWRAP_RULES=1 --repo_env=WHEEL_NAME=tensorflow --config=cuda \
414
+ --config=cuda_wheel --config=opt
415
+ </code >
409
416
410
417
<code class =" devsite-terminal tfo-terminal-root " >chown $HOST_PERMS bazel-bin/tensorflow/tools/pip_package/wheel_house/tensorflow-<var >version</var >-<var >tags</var >.whl</code >
411
418
</pre >
0 commit comments