kopia lustrzana https://github.com/jupyterhub/repo2docker
Make `verify` check both server and kernel environments
rodzic
0ef79326e5
commit
a1df2ebda2
|
@ -1,7 +1,19 @@
|
||||||
#!/usr/bin/env python2
|
#!/usr/bin/env python2
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
print(sys.version_info)
|
print(sys.version_info)
|
||||||
assert sys.version_info[:2] == (2, 7)
|
assert sys.version_info[:2] == (2, 7)
|
||||||
|
|
||||||
import numpy
|
import numpy
|
||||||
|
|
||||||
|
try:
|
||||||
|
import nbgitpuller
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
raise Exception("'nbgitpuller' shouldn't have been installed from requirements3.txt")
|
||||||
|
|
||||||
|
# Python 3 is the executable used for the notebook server, this should
|
||||||
|
# have nbgitpuller installed
|
||||||
|
os.system("python3 -c 'import nbgitpuller'")
|
||||||
|
|
Ładowanie…
Reference in New Issue