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
711022ba
Commit
711022ba
authored
May 28, 2015
by
Marius Wachtler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Py_GetVersion and a import test for decorator and oauth2client
parent
06d0dca9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
src/runtime/builtin_modules/sys.cpp
src/runtime/builtin_modules/sys.cpp
+5
-0
test/integration/virtualenv_test.py
test/integration/virtualenv_test.py
+3
-1
No files found.
src/runtime/builtin_modules/sys.cpp
View file @
711022ba
...
@@ -249,6 +249,11 @@ static std::string generateVersionString() {
...
@@ -249,6 +249,11 @@ static std::string generateVersionString() {
return
oss
.
str
();
return
oss
.
str
();
}
}
extern
"C"
const
char
*
Py_GetVersion
(
void
)
noexcept
{
static
std
::
string
version
=
generateVersionString
();
return
version
.
c_str
();
}
static
bool
isLittleEndian
()
{
static
bool
isLittleEndian
()
{
unsigned
long
number
=
1
;
unsigned
long
number
=
1
;
char
*
s
=
(
char
*
)
&
number
;
char
*
s
=
(
char
*
)
&
number
;
...
...
test/integration/virtualenv_test.py
View file @
711022ba
...
@@ -21,11 +21,13 @@ set -e
...
@@ -21,11 +21,13 @@ 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 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 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 gflags; print "gflags imports"'
python -c 'import sqlalchemy; print "sqlalchemy imports"'
python -c 'import sqlalchemy; print "sqlalchemy imports"'
python -c 'from PIL import Image; print "Pillow 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
()
"""
.
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