From e42a8da88dcf66267028545db8b0c8841e61504f Mon Sep 17 00:00:00 2001 From: Yevhenii Havrylko Date: Mon, 6 May 2024 12:37:02 -0400 Subject: [PATCH] Remove MANIFEST.in --- MANIFEST.in | 6 ------ conda-recipe/bld.bat | 7 ------- conda-recipe/build.sh | 7 ------- setup.py | 5 +++-- 4 files changed, 3 insertions(+), 22 deletions(-) delete mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 8c457d17ad..0000000000 --- a/MANIFEST.in +++ /dev/null @@ -1,6 +0,0 @@ -include MANIFEST.in -include README.md setup.py LICENSE - -include numba_dpex/_version.py - -recursive-include numba_dpex/examples * diff --git a/conda-recipe/bld.bat b/conda-recipe/bld.bat index 9846722302..277662827a 100644 --- a/conda-recipe/bld.bat +++ b/conda-recipe/bld.bat @@ -50,10 +50,3 @@ if NOT "%WHEELS_OUTPUT_FOLDER%"=="" ( copy dist\numba_dpex*.whl %WHEELS_OUTPUT_FOLDER% if errorlevel 1 exit 1 ) - -REM Delete artifacts from package -rd /s /q "%PREFIX%\__pycache__" -del "%PREFIX%\setup.py" -del "%PREFIX%\LICENSE" -del "%PREFIX%\README.md" -del "%PREFIX%\MANIFEST.in" diff --git a/conda-recipe/build.sh b/conda-recipe/build.sh index d1e0783b3b..e93cdc7591 100644 --- a/conda-recipe/build.sh +++ b/conda-recipe/build.sh @@ -39,10 +39,3 @@ ${PYTHON} -m pip install dist/numba_dpex*.whl \ if [[ -v WHEELS_OUTPUT_FOLDER ]]; then cp dist/numba_dpex*.whl "${WHEELS_OUTPUT_FOLDER[@]}" fi - -# Delete artifacts from package -rm -rf "${PREFIX}/__pycache__" -rm "${PREFIX}/setup.py" -rm "${PREFIX}/LICENSE" -rm "${PREFIX}/README.md" -rm "${PREFIX}/MANIFEST.in" diff --git a/setup.py b/setup.py index a5613c1884..3fd8d86784 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ import re import versioneer -from setuptools import find_packages +from setuptools import find_namespace_packages, find_packages from skbuild import setup """Top level setup.py file. Uses scikit-build. @@ -58,7 +58,8 @@ def to_cmake_format(version: str): # Must be passed vis setup.py: # https://github.com/scikit-build/scikit-build/issues/864 # TODO: switch to pyproject toml after switching to scikit-build-core - packages=find_packages("."), + packages=find_packages(".") + + find_namespace_packages(".", include=["numba_dpex.examples.*"]), # Needs for examples. # TODO: change to false once move examples out of package. include_package_data=True,