Skip to content

Commit 457450a

Browse files
Merge pull request #1001 from IntelPython/fix-inconsistency-system-git-and-conda-env
Fix inconsistency system git and conda env
2 parents 7690952 + 701f708 commit 457450a

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

conda-recipe/build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
# activation scripts.
66
export LDFLAGS="$LDFLAGS -Wl,-rpath,$PREFIX/lib"
77

8-
${PYTHON} setup.py clean --all
8+
if [ -e "_skbuild" ]; then
9+
${PYTHON} setup.py clean --all
10+
fi
911
export CMAKE_GENERATOR="Ninja"
1012
SKBUILD_ARGS="-- -DCMAKE_C_COMPILER:PATH=icx -DCMAKE_CXX_COMPILER:PATH=icpx"
1113
echo "${PYTHON} setup.py install ${SKBUILD_ARGS}"

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

libsyclinterface/cmake/modules/GetLevelZeroHeaders.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function(get_level_zero_headers)
3939

4040
if(NOT result EQUAL 0)
4141
message(FATAL_ERROR
42-
"Could not update Level Zero sources."
42+
"Could not update Level Zero sources. Return code: ${result}"
4343
)
4444
endif()
4545
else()
@@ -54,7 +54,7 @@ function(get_level_zero_headers)
5454

5555
if(NOT result EQUAL 0)
5656
message(FATAL_ERROR
57-
"Could not clone Level Zero sources from github.com/oneapi-src/level-zero."
57+
"Could not clone Level Zero sources from github.com/oneapi-src/level-zero. Return code: ${result}"
5858
)
5959
endif()
6060
endif()
@@ -72,7 +72,7 @@ function(get_level_zero_headers)
7272

7373
if(NOT result EQUAL 0)
7474
message(FATAL_ERROR
75-
"Could not get the name for the latest release."
75+
"Could not get the name for the latest release. Return code: ${result}"
7676
)
7777
endif()
7878

@@ -88,7 +88,7 @@ function(get_level_zero_headers)
8888

8989
if(NOT result EQUAL 0)
9090
message(FATAL_ERROR
91-
"Could not checkout the latest release."
91+
"Could not checkout the latest release. Return code: ${result}"
9292
)
9393
endif()
9494

0 commit comments

Comments
 (0)