Commit 711022ba authored by Marius Wachtler's avatar Marius Wachtler

Add Py_GetVersion and a import test for decorator and oauth2client

parent 06d0dca9
......@@ -249,6 +249,11 @@ static std::string generateVersionString() {
return oss.str();
}
extern "C" const char* Py_GetVersion(void) noexcept {
static std::string version = generateVersionString();
return version.c_str();
}
static bool isLittleEndian() {
unsigned long number = 1;
char* s = (char*)&number;
......
......@@ -21,11 +21,13 @@ set -e
set -ux
python -c 'import __future__'
python -c 'import sys; print sys.executable'
pip install bcrypt==1.1.0 python-gflags==2.0 sqlalchemy==1.0.0 Pillow==2.8.1
pip install bcrypt==1.1.0 python-gflags==2.0 sqlalchemy==1.0.0 Pillow==2.8.1 decorator oauth2client
python -c 'import bcrypt; assert bcrypt.__version__ == "1.1.0"; assert bcrypt.hashpw("password1", "$2a$12$0123456789012345678901").endswith("I1hdtg4K"); print "bcrypt seems to work"'
python -c 'import gflags; print "gflags imports"'
python -c 'import sqlalchemy; print "sqlalchemy imports"'
python -c 'from PIL import Image; print "Pillow imports"'
python -c 'import decorator; print "decorator imports"'
python -c 'import oauth2client; print "oauth2client imports"'
""".strip()
# print sh_script
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment