Skip to content

Commit 50cd1c5

Browse files
Merge pull request #1447 from IntelPython/SAT-6809
Remove artifacts from conda/wheel packages residing in root level
2 parents c1b8a59 + 32fa39f commit 50cd1c5

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

conda-recipe/bld.bat

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,10 @@ if NOT "%WHEELS_OUTPUT_FOLDER%"=="" (
4444
copy dist\numba_dpex*.whl %WHEELS_OUTPUT_FOLDER%
4545
if errorlevel 1 exit 1
4646
)
47+
48+
REM Delete artifacts from package
49+
rd /s /q "%PREFIX%\__pycache__"
50+
del "%PREFIX%\setup.py"
51+
del "%PREFIX%\LICENSE"
52+
del "%PREFIX%\README.md"
53+
del "%PREFIX%\MANIFEST.in"

conda-recipe/build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,10 @@ ${PYTHON} -m pip install dist/numba_dpex*.whl
3333
if [[ -v WHEELS_OUTPUT_FOLDER ]]; then
3434
cp dist/numba_dpex*.whl "${WHEELS_OUTPUT_FOLDER[@]}"
3535
fi
36+
37+
# Delete artifacts from package
38+
rm -rf "${PREFIX}/__pycache__"
39+
rm "${PREFIX}/setup.py"
40+
rm "${PREFIX}/LICENSE"
41+
rm "${PREFIX}/README.md"
42+
rm "${PREFIX}/MANIFEST.in"

0 commit comments

Comments
 (0)