@@ -167,17 +167,21 @@ def mkdir_and_copy_file(self, header):
167
167
# directories for -I
168
168
install_dir = re .sub ('/google/protobuf_archive/src' , '' , install_dir )
169
169
170
- # Copy eigen code into tensorflow/include.
170
+ # Copy external code headers into tensorflow/include.
171
171
# A symlink would do, but the wheel file that gets created ignores
172
172
# symlink within the directory hierarchy.
173
173
# NOTE(keveman): Figure out how to customize bdist_wheel package so
174
174
# we can do the symlink.
175
- if 'tensorflow/include/external/eigen_archive/' in install_dir :
176
- extra_dir = install_dir .replace (
177
- 'tensorflow/include/external/eigen_archive' , '' )
178
- if not os .path .exists (extra_dir ):
179
- self .mkpath (extra_dir )
180
- self .copy_file (header , extra_dir )
175
+ external_header_locations = [
176
+ 'tensorflow/include/external/eigen_archive/' ,
177
+ 'tensorflow/include/external/com_google_absl/' ,
178
+ ]
179
+ for location in external_header_locations :
180
+ if location in install_dir :
181
+ extra_dir = install_dir .replace (location , '' )
182
+ if not os .path .exists (extra_dir ):
183
+ self .mkpath (extra_dir )
184
+ self .copy_file (header , extra_dir )
181
185
182
186
if not os .path .exists (install_dir ):
183
187
self .mkpath (install_dir )
@@ -227,6 +231,8 @@ def find_files(pattern, root):
227
231
list (find_files ('*.h' , 'tensorflow/stream_executor' )) +
228
232
list (find_files ('*.h' , 'google/protobuf_archive/src' )) +
229
233
list (find_files ('*' , 'third_party/eigen3' )) +
234
+ list (find_files ('*.h' ,
235
+ 'tensorflow/include/external/com_google_absl' )) +
230
236
list (find_files ('*' , 'tensorflow/include/external/eigen_archive' )))
231
237
232
238
setup (
0 commit comments