Skip to content

Commit 3621f55

Browse files
tox.ini: only use sitepackages for "native" py3 envs
We need to use sitepackages for stuff that comes from the system like samba libs and other compiled C stuff. This seems to be the only way to get system packages when running the "native" py3 environments, but skip them when checking stuff on our minimal supported python version. Signed-off-by: John Mulligan <[email protected]>
1 parent 8c5ed2a commit 3621f55

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/container/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export NSS_WRAPPER_GROUP=/etc/group
6767
# Run tox with sitepackages enabled to allow access to system installed samba
6868
# modules. The container env already provides us control over the env.
6969
info "running test suite with tox"
70-
tox --sitepackages
70+
tox
7171

7272
info "building python package(s)"
7373
pip -qq install build

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ deps =
1717
py3: pyxattr
1818
commands =
1919
py.test -v tests --cov=sambacc --cov-report=html {posargs}
20+
sitepackages = py3: True
2021

2122
[testenv:{py3,py39}-mypy]
2223
deps =

0 commit comments

Comments
 (0)