Skip to content

Commit b3f87af

Browse files
committed
Build: create DEPS_WITHOUT_SUDO env var
1 parent 9fb9fb6 commit b3f87af

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/wheel-builder.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ jobs:
285285
SKBUILD_CMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
286286
GH_TOKEN=${{ secrets.GITHUB_TOKEN }}
287287
LUX_BUILD_TYPE=${{ env.BUILD_TYPE }}
288+
DEPS_WITHOUT_SUDO=1
288289
CIBW_ENVIRONMENT_PASS_LINUX: |
289290
CC
290291
CXX

build-helpers/make/make_deps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ def main(
468468
"--settings=build_type=Release",
469469
f"--conf:all=tools.cmake.cmaketoolchain:generator={generator}",
470470
]
471-
if not os.getenv("CI"):
471+
if not os.getenv("DEPS_WITHOUT_SUDO"):
472472
main_block += [
473473
"--conf:all=tools.system.package_manager:sudo=true",
474474
]

0 commit comments

Comments
 (0)