From 2ce07025888a18e4cf8541c366226bf560300d64 Mon Sep 17 00:00:00 2001 From: Andres Guzman-Ballen Date: Wed, 1 May 2024 12:39:13 -0500 Subject: [PATCH 1/3] Remove artifacts from conda/wheel packages residing in root level --- conda-recipe/bld.bat | 6 ++++++ conda-recipe/build.sh | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/conda-recipe/bld.bat b/conda-recipe/bld.bat index 1a74face5c..ce20fe46b0 100644 --- a/conda-recipe/bld.bat +++ b/conda-recipe/bld.bat @@ -44,3 +44,9 @@ if NOT "%WHEELS_OUTPUT_FOLDER%"=="" ( copy dist\numba_dpex*.whl %WHEELS_OUTPUT_FOLDER% if errorlevel 1 exit 1 ) + +REM Delete artifacts from package +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 68f12528f9..7d890f627d 100644 --- a/conda-recipe/build.sh +++ b/conda-recipe/build.sh @@ -33,3 +33,9 @@ ${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 ${PREFIX}/setup.py +rm ${PREFIX}/LICENSE +rm ${PREFIX}/README.md +rm ${PREFIX}/MANIFEST.in From 5b8ec330cc3b0dd65eae57b5e73fbd9a929cab2b Mon Sep 17 00:00:00 2001 From: Andres Guzman-Ballen Date: Wed, 1 May 2024 12:45:32 -0500 Subject: [PATCH 2/3] Address linting issues --- conda-recipe/bld.bat | 8 ++++---- conda-recipe/build.sh | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/conda-recipe/bld.bat b/conda-recipe/bld.bat index ce20fe46b0..184f9f37c5 100644 --- a/conda-recipe/bld.bat +++ b/conda-recipe/bld.bat @@ -46,7 +46,7 @@ if NOT "%WHEELS_OUTPUT_FOLDER%"=="" ( ) REM Delete artifacts from package -del %PREFIX%\setup.py -del %PREFIX%\LICENSE -del %PREFIX%\README.md -del %PREFIX%\MANIFEST.in +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 7d890f627d..2bb8838abe 100644 --- a/conda-recipe/build.sh +++ b/conda-recipe/build.sh @@ -35,7 +35,7 @@ if [[ -v WHEELS_OUTPUT_FOLDER ]]; then fi # Delete artifacts from package -rm ${PREFIX}/setup.py -rm ${PREFIX}/LICENSE -rm ${PREFIX}/README.md -rm ${PREFIX}/MANIFEST.in +rm "${PREFIX}/setup.py" +rm "${PREFIX}/LICENSE" +rm "${PREFIX}/README.md" +rm "${PREFIX}/MANIFEST.in" From 34c8d6317118d2b1bf696f2e012f335f5174d941 Mon Sep 17 00:00:00 2001 From: Andres Guzman-Ballen Date: Wed, 1 May 2024 13:41:23 -0500 Subject: [PATCH 3/3] Also remove __pycache__ --- conda-recipe/bld.bat | 1 + conda-recipe/build.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/conda-recipe/bld.bat b/conda-recipe/bld.bat index 184f9f37c5..7e846e8537 100644 --- a/conda-recipe/bld.bat +++ b/conda-recipe/bld.bat @@ -46,6 +46,7 @@ if NOT "%WHEELS_OUTPUT_FOLDER%"=="" ( ) REM Delete artifacts from package +rd /s /q "%PREFIX%\__pycache__" del "%PREFIX%\setup.py" del "%PREFIX%\LICENSE" del "%PREFIX%\README.md" diff --git a/conda-recipe/build.sh b/conda-recipe/build.sh index 2bb8838abe..da13f3f8bf 100644 --- a/conda-recipe/build.sh +++ b/conda-recipe/build.sh @@ -35,6 +35,7 @@ if [[ -v WHEELS_OUTPUT_FOLDER ]]; then fi # Delete artifacts from package +rm -rf "${PREFIX}/__pycache__" rm "${PREFIX}/setup.py" rm "${PREFIX}/LICENSE" rm "${PREFIX}/README.md"