Skip to content

Commit a6a039c

Browse files
committed
Skip conda install if intel
1 parent 454b3a6 commit a6a039c

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

backend/python/common-env/transformers/Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ ifeq ($(BUILD_TYPE), hipblas)
88
CONDA_ENV_PATH = "transformers-rocm.yml"
99
endif
1010

11+
ifneq (,$(findstring sycl,$(BUILD_TYPE)))
12+
export SKIP_CONDA=1
13+
endif
14+
1115
.PHONY: transformers
1216
transformers:
1317
@echo "Installing $(CONDA_ENV_PATH)..."

backend/python/common-env/transformers/install.sh

+10-6
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@ conda_env_exists(){
66
! conda list --name "${@}" >/dev/null 2>/dev/null
77
}
88

9-
if conda_env_exists "transformers" ; then
10-
echo "Creating virtual environment..."
11-
conda env create --name transformers --file $1
12-
echo "Virtual environment created."
13-
else
14-
echo "Virtual environment already exists."
9+
if [ $SKIP_CONDA == 1 ]; then
10+
echo "Skipping conda environment installation"
11+
else
12+
if conda_env_exists "transformers" ; then
13+
echo "Creating virtual environment..."
14+
conda env create --name transformers --file $1
15+
echo "Virtual environment created."
16+
else
17+
echo "Virtual environment already exists."
18+
fi
1519
fi
1620

1721
if [ "$PIP_CACHE_PURGE" = true ] ; then

backend/python/diffusers/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export CONDA_ENV_PATH = "diffusers-rocm.yml"
55
endif
66

77
ifneq (,$(findstring sycl,$(BUILD_TYPE)))
8-
export SKIP=1
8+
export SKIP_CONDA=1
99
endif
1010

1111
.PHONY: diffusers

backend/python/diffusers/install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ conda_env_exists(){
66
! conda list --name "${@}" >/dev/null 2>/dev/null
77
}
88

9-
if [ $SKIP == 1 ]; then
9+
if [ $SKIP_CONDA == 1 ]; then
1010
echo "Skipping conda environment installation"
1111
else
1212
if conda_env_exists "diffusers" ; then

0 commit comments

Comments
 (0)