Skip to content

Commit

Permalink
Set Distribution.has_ext_modules to True
Browse files Browse the repository at this point in the history
Ensure `setuptools` knows our package has extension modules. Even though
it is not totally obvious they are there.
  • Loading branch information
jakirkham committed Nov 29, 2023
1 parent 3c32941 commit 07e2ed2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion python/cucim/setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Copyright (c) 2023, NVIDIA CORPORATION.

from setuptools import setup
from setuptools.dist import Distribution as _Distribution

setup()

# As we vendored a shared object that links to a specific Python version,
# make sure it is treated as impure so the wheel is named properly.
class Distribution(_Distribution):
def has_ext_modules(self):
return True


setup(
distclass=Distribution,
)

0 comments on commit 07e2ed2

Please sign in to comment.