Skip to content

Commit ce22700

Browse files
Merge pull request tensorflow#48522 from yongtang:no-aws-hdfs
PiperOrigin-RevId: 371807950 Change-Id: Id7e762945f0b5d965865220d213cb297bb565f3e
2 parents eaa0c58 + cb1acd2 commit ce22700

File tree

5 files changed

+9
-29
lines changed

5 files changed

+9
-29
lines changed

.bazelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ build --config=short_logs
142142

143143
build --config=v2
144144

145+
# Disable AWS/HDFS support by default
146+
build --define=no_aws_support=true
147+
build --define=no_hdfs_support=true
148+
145149
# Default options should come above this line.
146150

147151
# Allow builds using libc++ as a linker library

configure.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,8 +1330,8 @@ def main():
13301330

13311331
with_xla_support = environ_cp.get('TF_ENABLE_XLA', None)
13321332
if with_xla_support is not None:
1333-
write_to_bazelrc('build --define=with_xla_support=%s' % (
1334-
'true' if int(with_xla_support) else 'false'))
1333+
write_to_bazelrc('build --define=with_xla_support=%s' %
1334+
('true' if int(with_xla_support) else 'false'))
13351335

13361336
set_action_env_var(
13371337
environ_cp, 'TF_NEED_ROCM', 'ROCm', False, bazel_config_name='rocm')
@@ -1467,9 +1467,7 @@ def main():
14671467
config_info_line('v2', 'Build TensorFlow 2.x instead of 1.x.')
14681468

14691469
print('Preconfigured Bazel build configs to DISABLE default on features:')
1470-
config_info_line('noaws', 'Disable AWS S3 filesystem support.')
14711470
config_info_line('nogcp', 'Disable GCP support.')
1472-
config_info_line('nohdfs', 'Disable HDFS support.')
14731471
config_info_line('nonccl', 'Disable NVIDIA NCCL support.')
14741472

14751473

tensorflow/core/platform/default/build_config.bzl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,6 @@ def tf_additional_core_deps():
670670
clean_dep("//tensorflow:android"): [],
671671
clean_dep("//tensorflow:ios"): [],
672672
clean_dep("//tensorflow:linux_s390x"): [],
673-
clean_dep("//tensorflow:windows"): [],
674673
clean_dep("//tensorflow:no_hdfs_support"): [],
675674
clean_dep("//tensorflow:with_tpu_support"): [],
676675
"//conditions:default": [

tensorflow/tools/lib_package/BUILD

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ genrule(
139139
srcs = [
140140
"//third_party/eigen3:LICENSE",
141141
"//third_party/fft2d:LICENSE",
142-
"//third_party/hadoop:LICENSE.txt",
143142
"//third_party/icu/data:LICENSE",
144143
"@boringssl//:LICENSE",
145144
"@com_google_protobuf//:LICENSE",
@@ -168,13 +167,7 @@ genrule(
168167
"//tensorflow:ios": [],
169168
"//tensorflow:linux_s390x": [],
170169
"//tensorflow:windows": [],
171-
"//tensorflow:no_aws_support": [],
172-
"//conditions:default": [
173-
"@aws//:LICENSE",
174-
"@aws-checksums//:LICENSE",
175-
"@aws-c-event-stream//:LICENSE",
176-
"@aws-c-common//:LICENSE",
177-
],
170+
"//conditions:default": [],
178171
}) + select({
179172
"//tensorflow:android": [],
180173
"//tensorflow:ios": [],
@@ -216,7 +209,6 @@ genrule(
216209
srcs = [
217210
"//third_party/eigen3:LICENSE",
218211
"//third_party/fft2d:LICENSE",
219-
"//third_party/hadoop:LICENSE.txt",
220212
"//third_party/icu/data:LICENSE",
221213
"@boringssl//:LICENSE",
222214
"@com_google_protobuf//:LICENSE",
@@ -247,13 +239,7 @@ genrule(
247239
"//tensorflow:ios": [],
248240
"//tensorflow:linux_s390x": [],
249241
"//tensorflow:windows": [],
250-
"//tensorflow:no_aws_support": [],
251-
"//conditions:default": [
252-
"@aws//:LICENSE",
253-
"@aws-checksums//:LICENSE",
254-
"@aws-c-event-stream//:LICENSE",
255-
"@aws-c-common//:LICENSE",
256-
],
242+
"//conditions:default": [],
257243
}) + select({
258244
"//tensorflow:android": [],
259245
"//tensorflow:ios": [],

tensorflow/tools/pip_package/BUILD

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ filegroup(
182182
"//:LICENSE",
183183
"//third_party/eigen3:LICENSE",
184184
"//third_party/fft2d:LICENSE",
185-
"//third_party/hadoop:LICENSE.txt",
186185
"//third_party/icu/data:LICENSE",
187186
"@ruy//:LICENSE",
188187
"@arm_neon_2_x86_sse//:LICENSE",
@@ -232,13 +231,7 @@ filegroup(
232231
"//tensorflow:ios": [],
233232
"//tensorflow:linux_s390x": [],
234233
"//tensorflow:windows": [],
235-
"//tensorflow:no_aws_support": [],
236-
"//conditions:default": [
237-
"@aws//:LICENSE",
238-
"@aws-c-common//:LICENSE",
239-
"@aws-c-event-stream//:LICENSE",
240-
"@aws-checksums//:LICENSE",
241-
],
234+
"//conditions:default": [],
242235
}) + select({
243236
"//tensorflow:android": [],
244237
"//tensorflow:ios": [],

0 commit comments

Comments
 (0)