Commit 66393bc6 authored by Kevin Modzelewski's avatar Kevin Modzelewski

gflags imports now

parent a011d128
...@@ -126,6 +126,10 @@ Box* sysGetFilesystemEncoding() { ...@@ -126,6 +126,10 @@ Box* sysGetFilesystemEncoding() {
return None; return None;
} }
Box* sysGetRecursionLimit() {
return PyInt_FromLong(Py_GetRecursionLimit());
}
extern "C" int PySys_SetObject(const char* name, PyObject* v) noexcept { extern "C" int PySys_SetObject(const char* name, PyObject* v) noexcept {
try { try {
if (!v) { if (!v) {
...@@ -426,6 +430,10 @@ void setupSys() { ...@@ -426,6 +430,10 @@ void setupSys() {
new BoxedBuiltinFunctionOrMethod(boxRTFunction((void*)sysGetFilesystemEncoding, STR, 0), new BoxedBuiltinFunctionOrMethod(boxRTFunction((void*)sysGetFilesystemEncoding, STR, 0),
"getfilesystemencoding")); "getfilesystemencoding"));
sys_module->giveAttr(
"getrecursionlimit",
new BoxedBuiltinFunctionOrMethod(boxRTFunction((void*)sysGetRecursionLimit, UNKNOWN, 0), "getrecursionlimit"));
sys_module->giveAttr("meta_path", new BoxedList()); sys_module->giveAttr("meta_path", new BoxedList());
sys_module->giveAttr("path_hooks", new BoxedList()); sys_module->giveAttr("path_hooks", new BoxedList());
sys_module->giveAttr("path_importer_cache", new BoxedDict()); sys_module->giveAttr("path_importer_cache", new BoxedDict());
......
...@@ -21,8 +21,9 @@ set -e ...@@ -21,8 +21,9 @@ set -e
set -ux set -ux
python -c 'import __future__' python -c 'import __future__'
python -c 'import sys; print sys.executable' python -c 'import sys; print sys.executable'
pip install bcrypt==1.1.0 pip install bcrypt==1.1.0 python-gflags==2.0
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 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"'
""".strip() """.strip()
# print sh_script # 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