2018-12-18 00:12:19 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
import sys
|
|
|
|
import os
|
|
|
|
|
2019-04-26 14:15:40 +00:00
|
|
|
# conda should still be in /srv/conda
|
|
|
|
# and Python should still be in $NB_PYTHON_PREFIX
|
2019-05-31 09:10:17 +00:00
|
|
|
assert sys.executable == os.path.join(
|
|
|
|
os.environ["NB_PYTHON_PREFIX"], "bin", "python"
|
|
|
|
), sys.executable
|
2019-04-26 14:15:40 +00:00
|
|
|
assert sys.executable.startswith("/srv/conda/"), sys.executable
|
2018-12-18 00:12:19 +00:00
|
|
|
|
|
|
|
# Repo should be in /srv/repo
|
2019-05-31 09:10:17 +00:00
|
|
|
assert os.path.exists("/srv/repo/verify")
|
|
|
|
assert os.path.abspath(__file__) == "/srv/repo/verify"
|
2019-03-04 16:02:53 +00:00
|
|
|
|
2020-10-20 04:49:09 +00:00
|
|
|
# Repo should be writable
|
|
|
|
assert os.access("/srv/repo", os.W_OK)
|
|
|
|
|
2019-03-04 16:02:53 +00:00
|
|
|
# We should be able to import the package in environment.yml
|
|
|
|
import numpy
|