Skip to content

Commit

Permalink
#4050 delete extra modules before recording sbom
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Nov 10, 2024
1 parent 6e91922 commit b3c67e1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packaging/MSWindows/BUILD.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ def zip_modules(light: bool) -> None:
ZIPPED = [
"OpenGL", "encodings", "future", "paramiko", "html",
"pyasn1", "asn1crypto", "async_timeout",
"certifi", "OpenSSL", "pkcs11", "keyring",
"certifi", "OpenSSL", "keyring",
"ifaddr", "pyaes", "service_identity",
"re", "platformdirs", "attr", "setproctitle", "pyvda", "zipp",
"distutils", "comtypes", "email", "multiprocessing", "packaging",
Expand Down Expand Up @@ -1049,8 +1049,9 @@ def rec_cuda(path: str) -> None:
cuda_version = version_data["cuda"]["version"]
sbom[path] = (0, "", "cuda", cuda_version)

debug("adding DLLs and EXEs")
for globbed_path in find_glob_paths(DIST, "*.dll") + find_glob_paths(LIB_DIR, "*.exe"):
globbed_paths = find_glob_paths(DIST, "*.dll") + find_glob_paths(LIB_DIR, "*.exe")
debug(f"adding DLLs and EXEs: {globbed_paths}")
for globbed_path in globbed_paths:
path = globbed_path[len(DIST)+1:]
if path.startswith("lib/PyQt6"):
rec_pyqt_lib(path)
Expand Down Expand Up @@ -1296,6 +1297,8 @@ def build(args) -> None:
trim_python_libs()
trim_pillow()
fixup_zeroconf()
if args.light:
delete_libs(*EXTRA_PYTHON_MODULES)
rm_empty_dirs()

add_cuda(args.cuda)
Expand Down Expand Up @@ -1325,9 +1328,6 @@ def build(args) -> None:
rec_sbom()
export_sbom()

if args.light:
delete_libs(EXTRA_PYTHON_MODULES)

if args.zip_modules:
zip_modules(args.light)

Expand Down

0 comments on commit b3c67e1

Please sign in to comment.