Skip to content

Commit 7aa08d2

Browse files
Do not use find_packages, list them explicitly
This resolved warning messages like this: ``` writing manifest file 'dpctl.egg-info/SOURCES.txt' /home/user/miniconda3/conda-bld/dpctl_1668116526346/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python3.9/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'dpctl.cmake' as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 'dpctl.cmake' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'dpctl.cmake' has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools (and therefore is considered deprecated). Please make sure that 'dpctl.cmake' is included as a package by using the `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. !! ```
1 parent 503d773 commit 7aa08d2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

setup.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import skbuild
2424
import skbuild.setuptools_wrap
2525
import skbuild.utils
26-
from setuptools import find_packages
2726
from skbuild.command.build_py import build_py as _skbuild_build_py
2827
from skbuild.command.install import install as _skbuild_install
2928

@@ -140,7 +139,13 @@ def _get_cmdclass():
140139
license="Apache 2.0",
141140
author="Intel Corporation",
142141
url="https://github.com/IntelPython/dpctl",
143-
packages=find_packages(include=["*"]),
142+
packages=[
143+
"dpctl",
144+
"dpctl.memory",
145+
"dpctl.tensor",
146+
"dpctl.program",
147+
"dpctl.utils",
148+
],
144149
package_data={"dpctl": ["tests/*.*", "tests/helper/*.py"]},
145150
include_package_data=True,
146151
zip_safe=False,

0 commit comments

Comments
 (0)