Skip to content

Commit

Permalink
Merge pull request #1447 from IntelPython/SAT-6809
Browse files Browse the repository at this point in the history
Remove artifacts from conda/wheel packages residing in root level
  • Loading branch information
AndresGuzman-Ballen authored May 3, 2024
2 parents c1b8a59 + 32fa39f commit 50cd1c5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions conda-recipe/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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"
7 changes: 7 additions & 0 deletions conda-recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 50cd1c5

Please sign in to comment.