Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
66393bc6
Commit
66393bc6
authored
Apr 29, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gflags imports now
parent
a011d128
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
src/runtime/builtin_modules/sys.cpp
src/runtime/builtin_modules/sys.cpp
+8
-0
test/integration/virtualenv_test.py
test/integration/virtualenv_test.py
+2
-1
No files found.
src/runtime/builtin_modules/sys.cpp
View file @
66393bc6
...
@@ -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
());
...
...
test/integration/virtualenv_test.py
View file @
66393bc6
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment