|
21 | 21 | from wheel.bdist_wheel import get_abi_tag
|
22 | 22 |
|
23 | 23 |
|
24 |
| -WHITELIST = { |
| 24 | +ALLOWLIST = { |
25 | 25 | 'libgcc_s.so.1', 'libstdc++.so.6', 'libm.so.6',
|
26 | 26 | 'libdl.so.2', 'librt.so.1', 'libc.so.6',
|
27 | 27 | 'libnsl.so.1', 'libutil.so.1', 'libpthread.so.0',
|
|
31 | 31 | 'libglib-2.0.so.0', 'ld-linux-x86-64.so.2', 'ld-2.17.so'
|
32 | 32 | }
|
33 | 33 |
|
34 |
| -WINDOWS_WHITELIST = { |
| 34 | +WINDOWS_ALLOWLIST = { |
35 | 35 | 'MSVCP140.dll', 'KERNEL32.dll',
|
36 | 36 | 'VCRUNTIME140_1.dll', 'VCRUNTIME140.dll',
|
37 | 37 | 'api-ms-win-crt-heap-l1-1-0.dll',
|
@@ -164,7 +164,7 @@ def relocate_elf_library(patchelf, output_dir, output_library, binary):
|
164 | 164 | print('Omitting {0}'.format(library))
|
165 | 165 | continue
|
166 | 166 |
|
167 |
| - if library in WHITELIST: |
| 167 | + if library in ALLOWLIST: |
168 | 168 | # Omit glibc/gcc/system libraries
|
169 | 169 | print('Omitting {0}'.format(library))
|
170 | 170 | continue
|
@@ -275,7 +275,7 @@ def relocate_dll_library(dumpbin, output_dir, output_library, binary):
|
275 | 275 |
|
276 | 276 | while binary_queue != []:
|
277 | 277 | library, parent = binary_queue.pop(0)
|
278 |
| - if library in WINDOWS_WHITELIST or library.startswith('api-ms-win'): |
| 278 | + if library in WINDOWS_ALLOWLIST or library.startswith('api-ms-win'): |
279 | 279 | print('Omitting {0}'.format(library))
|
280 | 280 | continue
|
281 | 281 |
|
|
0 commit comments