Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
coderai
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexlab
coderai
Commits
58f4382d
Commit
58f4382d
authored
Mar 08, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create separate venv for each backend: venv_nvidia, venv_vulkan, venv_vulkan_nvidia
parent
0b0a9798
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
build.sh
build.sh
+14
-3
No files found.
build.sh
View file @
58f4382d
...
...
@@ -42,11 +42,22 @@ fi
echo
-e
"
${
GREEN
}
✓ Python version:
$PYTHON_VERSION
${
NC
}
"
# Determine venv directory based on backend
if
[
"
$BACKEND
"
=
"nvidia"
]
;
then
VENV_DIR
=
"venv_nvidia"
elif
[
"
$BACKEND
"
=
"vulkan"
]
;
then
VENV_DIR
=
"venv_vulkan"
elif
[
"
$BACKEND
"
=
"vulkan-nvidia"
]
;
then
VENV_DIR
=
"venv_vulkan_nvidia"
fi
# Create virtual environment if it doesn't exist
VENV_DIR
=
"venv
"
echo
-e
"
${
YELLOW
}
Creating virtual environment:
$VENV_DIR
${
NC
}
"
if
[
!
-d
"
$VENV_DIR
"
]
;
then
echo
-e
"
${
YELLOW
}
Creating virtual environment...
${
NC
}
"
python3
-m
venv
"
$VENV_DIR
"
echo
-e
"
${
GREEN
}
✓ Created virtual environment:
$VENV_DIR
${
NC
}
"
else
echo
-e
"
${
YELLOW
}
Using existing virtual environment:
$VENV_DIR
${
NC
}
"
fi
# Activate virtual environment
...
...
@@ -185,4 +196,4 @@ echo "$BACKEND" > .backend
echo
-e
"
${
GREEN
}
Build completed successfully!
${
NC
}
"
echo
""
echo
"To activate the environment in the future, run:"
echo
" source
venv
/bin/activate"
echo
" source
$VENV_DIR
/bin/activate"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment