Skip to content

Commit d4f9d23

Browse files
committed
Move checks into a Python file.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
1 parent 099beb5 commit d4f9d23

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Makefile.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ example-command: | $(CONDA_ENV_PYTHON)
2626

2727
# Check that no system packages are found in the environment.
2828
test-command: | $(CONDA_ENV_PYTHON)
29-
$(IN_CONDA_ENV) python -c "import sys; assert all('/usr' not in p for p in sys.path), sys.path; print(sys.path)"
29+
$(IN_CONDA_ENV) python check.py

test/check.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env python
2+
3+
# Check that no system packages are found in the environment.
4+
import sys
5+
assert all('/usr' not in p for p in sys.path), sys.path
6+
print(sys.path)

0 commit comments

Comments
 (0)