Skip to content

Conversation

SimonRit
Copy link

This PR

- srit@srit-Precision-5480:~/tmp$ unzip LinuxWheel310-cuda116.zip 
Archive:  ../LinuxWheel310-cuda116.zip
  inflating: itk_cudacommon_cuda116-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl  
  inflating: itk_cudacommon_cuda116-1.0.1-cp310-cp310-manylinux_2_28_x86_64.whl  
srit@srit-Precision-5480:~/tmp$ unzip itk_cudacommon_cuda116-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Archive:  itk_cudacommon_cuda116-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
   creating: itk/
   creating: itk_cudacommon_cuda116-1.0.1.dist-info/
   creating: itk_cudacommon_cuda116.libs/
   creating: itk/Configuration/
  inflating: itk/CudaCommonPython.py  
  inflating: itk/_CudaCommonPython.so  
  inflating: itk/itkCudaDataManagerPython.py  
  inflating: itk/itkCudaImageDataManagerPython.py  
  inflating: itk/itkCudaImagePython.py  
  inflating: itk/itkImageSourceCudaCommonPython.py  
  inflating: itk/itkImageToImageFilterCudaCommonPython.py  
  inflating: itk/Configuration/CudaCommonConfig.py  
  inflating: itk/Configuration/CudaCommon_snake_case.py  
  inflating: itk_cudacommon_cuda116-1.0.1.dist-info/LICENSE  
  inflating: itk_cudacommon_cuda116-1.0.1.dist-info/METADATA  
  inflating: itk_cudacommon_cuda116-1.0.1.dist-info/WHEEL  
  inflating: itk_cudacommon_cuda116-1.0.1.dist-info/top_level.txt  
  inflating: itk_cudacommon_cuda116-1.0.1.dist-info/RECORD  
  inflating: itk_cudacommon_cuda116.libs/libtbb-b694c9f9.so.12.9  
  • includes in the docker LD_LIBRARY_PATH the library paths to forward it to auditwheel.

cf8c3f3 introduced an option to exclude
libraries from the wheel using auditwheel lib_whitelist policy. This is
deprecated since
pypa/auditwheel@4886850. This patch
uses the --exclude option instead, see
pypa/auditwheel@0a2fdd1.
@SimonRit
Copy link
Author

cc @LucasGandel

Copy link
Member

@dzenanz dzenanz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a great fix.

Copy link
Member

@thewtex thewtex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SimonRit thanks!

LGTM

@LucasGandel please take a look

dzenanz added a commit to dzenanz/ANTsWasm that referenced this pull request Feb 15, 2024
dzenanz added a commit to dzenanz/ANTsWasm that referenced this pull request Feb 15, 2024
@LucasGandel
Copy link
Collaborator

The change to use the new --exclude option looks good, thanks a lot!
I can't tell for the LD_LIBRARY_PATH change though.

@SimonRit
Copy link
Author

I can't tell for the LD_LIBRARY_PATH change though.

I made it because auditwheel could not find the shared libraries otherwise. Maybe it was working before thanks to the whitelist? I honestly don't know why...

@dzenanz dzenanz merged commit 8b047b0 into InsightSoftwareConsortium:master Feb 16, 2024
@dzenanz
Copy link
Member

dzenanz commented Feb 16, 2024

How does this change in light of this PR being merged? I tried using it here, without much luck.

@SimonRit
Copy link
Author

without much luck.

The error message in the failing build seems unrelated
Could NOT find SWIG (missing: SWIG_DIR)
I'm not sure what's the problem here...

@SimonRit SimonRit deleted the WheelExclude branch February 16, 2024 16:04
@dzenanz
Copy link
Member

dzenanz commented Feb 16, 2024

Maybe it is related to 96e3477?

dzenanz added a commit to dzenanz/ANTsWasm that referenced this pull request Feb 16, 2024
dzenanz added a commit to dzenanz/ANTsWasm that referenced this pull request Feb 16, 2024
dzenanz added a commit to dzenanz/ANTsWasm that referenced this pull request Feb 16, 2024
dzenanz added a commit to dzenanz/ANTsWasm that referenced this pull request Feb 16, 2024
dzenanz added a commit to dzenanz/ANTsWasm that referenced this pull request Feb 16, 2024
@SimonRit
Copy link
Author

Maybe it is related to 96e3477?

Possibly but I could not figure out why the CudaCommon CI had a different cmake command line, with the new options of this commit and not the former one as yours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants