Make `verify` check both server and kernel environments

pull/377/head
Tim Head 2018-08-18 13:01:18 +02:00
rodzic 0ef79326e5
commit a1df2ebda2
1 zmienionych plików z 12 dodań i 0 usunięć

Wyświetl plik

@ -1,7 +1,19 @@
#!/usr/bin/env python2
import os
import sys
print(sys.version_info)
assert sys.version_info[:2] == (2, 7)
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'")