File tree Expand file tree Collapse file tree 5 files changed +22
-9
lines changed
Expand file tree Collapse file tree 5 files changed +22
-9
lines changed Original file line number Diff line number Diff line change @@ -45,14 +45,6 @@ cd "${package_dir}"
4545
4646python -m pip wheel . -w dist -vvv --no-deps --disable-pip-version-check
4747
48- # Because we built the library with the run script and manually copied the shared pybind11
49- # library, the subsequent py_project.toml wheel build was as a pure Python package and results in
50- # tags that incorrectly indicate it is a universal wheel. To fix this, we need to modify the wheel
51- # to have CPython ABI and Python tags matching the version of Python that the Python bindings were
52- # built with.
53- WHEEL_PYTHON_TAG=cp$( echo ${RAPIDS_PY_VERSION} | sed ' s/\.//g' )
54- python -m wheel tags --remove --python-tag=" ${WHEEL_PYTHON_TAG} " --abi-tag=" ${WHEEL_PYTHON_TAG} " dist/*
55-
5648mkdir -p final_dist
5749python -m auditwheel repair -w final_dist dist/*
5850
Original file line number Diff line number Diff line change 1+ ../../LICENSE
Original file line number Diff line number Diff line change 1+ ../../LICENSE-3rdparty.md
Original file line number Diff line number Diff line change @@ -91,7 +91,10 @@ docs = [
9191cucim = " cucim.clara.cli:main"
9292
9393[tool .setuptools ]
94- license-files = [" LICENSE" ]
94+ license-files = [
95+ " LICENSE" ,
96+ " LICENSE-3rdparty.md" ,
97+ ]
9598include-package-data = true
9699
97100[tool .setuptools .dynamic ]
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2023, NVIDIA CORPORATION.
2+
3+ from setuptools import setup
4+ from setuptools .dist import Distribution as _Distribution
5+
6+
7+ # As we vendored a shared object that links to a specific Python version,
8+ # make sure it is treated as impure so the wheel is named properly.
9+ class Distribution (_Distribution ):
10+ def has_ext_modules (self ):
11+ return True
12+
13+
14+ setup (
15+ distclass = Distribution ,
16+ )
You can’t perform that action at this time.
0 commit comments