2018-08-18 10:50:31 +00:00
|
|
|
#!/usr/bin/env python2
|
2018-08-18 11:01:18 +00:00
|
|
|
import os
|
2018-08-18 10:50:31 +00:00
|
|
|
import sys
|
|
|
|
|
|
|
|
print(sys.version_info)
|
|
|
|
assert sys.version_info[:2] == (2, 7)
|
|
|
|
|
|
|
|
import numpy
|
2018-08-18 11:01:18 +00:00
|
|
|
|
|
|
|
try:
|
|
|
|
import nbgitpuller
|
|
|
|
except ImportError:
|
|
|
|
pass
|
|
|
|
else:
|
2019-05-31 09:10:17 +00:00
|
|
|
raise Exception(
|
|
|
|
"'nbgitpuller' shouldn't have been installed from requirements3.txt"
|
|
|
|
)
|
2018-08-18 11:01:18 +00:00
|
|
|
|
|
|
|
# Python 3 is the executable used for the notebook server, this should
|
|
|
|
# have nbgitpuller installed
|
|
|
|
os.system("python3 -c 'import nbgitpuller'")
|