diff --git a/conda-recipe/bld.bat b/conda-recipe/bld.bat index b0776fd1f2..c48ae966b1 100644 --- a/conda-recipe/bld.bat +++ b/conda-recipe/bld.bat @@ -4,4 +4,14 @@ if errorlevel 1 exit 1 REM conda uses %ERRORLEVEL% but FPGA scripts can set it. So it should be reseted. set ERRORLEVEL= +echo on + %PYTHON% setup.py install --single-version-externally-managed --record=record.txt + +rem Build wheel package +if NOT "%WHEELS_OUTPUT_FOLDER%"=="" ( + %PYTHON% setup.py bdist_wheel + if errorlevel 1 exit 1 + copy dist\numba_dppy*.whl %WHEELS_OUTPUT_FOLDER% + if errorlevel 1 exit 1 +) diff --git a/conda-recipe/build.sh b/conda-recipe/build.sh index 83d3c51569..ce5e0ae3d0 100644 --- a/conda-recipe/build.sh +++ b/conda-recipe/build.sh @@ -8,3 +8,14 @@ else fi ${PYTHON} setup.py install --single-version-externally-managed --record=record.txt + +# Build wheel package +if [ "$CONDA_PY" == "36" ]; then + WHEELS_BUILD_ARGS="-p manylinux1_x86_64" +else + WHEELS_BUILD_ARGS="-p manylinux2014_x86_64" +fi +if [ -n "${WHEELS_OUTPUT_FOLDER}" ]; then + $PYTHON setup.py bdist_wheel ${WHEELS_BUILD_ARGS} + cp dist/numba_dppy*.whl ${WHEELS_OUTPUT_FOLDER} +fi