diff --git a/conda-recipe/bld.bat b/conda-recipe/bld.bat index 1a74face5c..7e846e8537 100644 --- a/conda-recipe/bld.bat +++ b/conda-recipe/bld.bat @@ -44,3 +44,10 @@ 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 68f12528f9..da13f3f8bf 100644 --- a/conda-recipe/build.sh +++ b/conda-recipe/build.sh @@ -33,3 +33,10 @@ ${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"