Skip to content

Commit

Permalink
exclude files having a long path
Browse files Browse the repository at this point in the history
  • Loading branch information
leofang committed Sep 16, 2023
1 parent e1cef52 commit eb4922e
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@
# Notes:
# - Files only needed in sdist should be added to `MANIFEST.in`.
# - The following glob (`**`) ignores items starting with `.`.
# - libcudacxx's test files exceed the default path length limit on Windows, so
# we have to exclude them so as to avoid asking users to touch the registry.
cupy_package_data = [
'cupy/cuda/cupy_thrust.cu',
'cupy/cuda/cupy_cub.cu',
Expand All @@ -69,10 +71,16 @@
'cupyx/scipy/ndimage/cuda/LICENSE',
'cupyx/scipy/ndimage/cuda/pba_kernels_2d.h',
'cupyx/scipy/ndimage/cuda/pba_kernels_3d.h',
] + [
x for x in glob.glob('cupy/_core/include/cupy/**', recursive=True)
if os.path.isfile(x)
]
cupy_package_include = list(set(
[x for x in glob.iglob('cupy/_core/include/cupy/**', recursive=True)
if os.path.isfile(x)
]) - set(
[x for x in glob.iglob(
'cupy/_core/include/cupy/cccl/libcudacxx/**/test/**', recursive=True)
if os.path.isfile(x)
]))
cupy_package_data += cupy_package_include

package_data = {
'cupy': [
Expand Down

0 comments on commit eb4922e

Please sign in to comment.