Skip to content

Commit 31215e6

Browse files
Add git as build-time dependency to ensure consistency with conda env.
This avoids situations where system git's library dependency are picked up from conda environment and being inconsistent (may cause GIT to exit with code 128, internal error).
1 parent 9272874 commit 31215e6

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

conda-recipe/build.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ export CMAKE_GENERATOR="Ninja"
1212
SKBUILD_ARGS="-- -DCMAKE_C_COMPILER:PATH=icx -DCMAKE_CXX_COMPILER:PATH=icpx"
1313
echo "${PYTHON} setup.py install ${SKBUILD_ARGS}"
1414

15-
GIT_TRACE=true \
16-
GIT_CURL_VERBOSE=true \
17-
GIT_SSH_COMMAND="ssh -vvv" \
18-
git clone https://github.com/oneapi-src/level-zero.git || echo $?
19-
tree .
20-
rm -rf level-zero
21-
2215
# Workaround for:
2316
# DPC++ launched by cmake does not see components of `dpcpp_cpp_rt`,
2417
# because conda build isolates LD_LIBRARY_PATH to only $PREFIX subfolders.

conda-recipe/meta.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ requirements:
1616
- {{ compiler('dpcpp') }} >=2022.1 # [not osx]
1717
host:
1818
- setuptools
19-
- cython
2019
- cmake >=3.21
21-
- python
2220
- ninja
21+
- git
22+
- cython
23+
- python
2324
- scikit-build
2425
- numpy
2526
- wheel

0 commit comments

Comments
 (0)