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
928d5de2
Commit
928d5de2
authored
Sep 10, 2016
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Need to handle the zip_safe issues as well
Do it by patching distutils, which setuptools I guess builds on
parent
64d40697
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
3 deletions
+10
-3
from_cpython/Lib/distutils/core.py
from_cpython/Lib/distutils/core.py
+4
-0
from_cpython/Lib/py_compile.py
from_cpython/Lib/py_compile.py
+1
-1
src/runtime/builtin_modules/sys.cpp
src/runtime/builtin_modules/sys.cpp
+1
-2
test/extra/numpy_fulltest.py
test/extra/numpy_fulltest.py
+4
-0
No files found.
from_cpython/Lib/distutils/core.py
View file @
928d5de2
...
...
@@ -100,6 +100,10 @@ def setup(**attrs):
else
:
klass
=
Distribution
# Pyston change:
if
"zip_safe"
not
in
attrs
:
attrs
[
'zip_safe'
]
=
False
if
'script_name'
not
in
attrs
:
attrs
[
'script_name'
]
=
os
.
path
.
basename
(
sys
.
argv
[
0
])
if
'script_args'
not
in
attrs
:
...
...
from_cpython/Lib/py_compile.py
View file @
928d5de2
...
...
@@ -94,7 +94,7 @@ def compile(file, cfile=None, dfile=None, doraise=False, force=False):
# Pyston restrictions for things that we don't yet support
assert
cfile
is
None
or
cfile
==
file
+
"c"
assert
dfile
is
None
assert
dfile
is
None
or
dfile
==
file
try
:
__pyston__
.
py_compile
(
file
,
force
)
...
...
src/runtime/builtin_modules/sys.cpp
View file @
928d5de2
...
...
@@ -847,8 +847,7 @@ void setupSys() {
new
BoxedBuiltinFunctionOrMethod
(
BoxedCode
::
create
(
(
void
*
)
sysGetRecursionLimit
,
UNKNOWN
,
0
,
"getrecursionlimit"
,
getrecursionlimit_doc
)));
// As we don't support compile() etc yet force 'dont_write_bytecode' to true.
sys_module
->
giveAttrBorrowed
(
"dont_write_bytecode"
,
Py_True
);
sys_module
->
giveAttr
(
"dont_write_bytecode"
,
boxBool
(
Py_DontWriteBytecodeFlag
));
sys_module
->
giveAttr
(
"prefix"
,
boxString
(
Py_GetPrefix
()));
sys_module
->
giveAttr
(
"exec_prefix"
,
boxString
(
Py_GetExecPrefix
()));
...
...
test/extra/numpy_fulltest.py
View file @
928d5de2
...
...
@@ -42,6 +42,7 @@ if not os.path.exists(CYTHON_DIR):
subprocess
.
check_call
([
PYTHON_EXE
,
"-c"
,
"import Cython"
],
cwd
=
CYTHON_DIR
)
except
:
subprocess
.
check_call
([
"rm"
,
"-rf"
,
CYTHON_DIR
])
raise
else
:
print
">>> Cython already installed."
...
...
@@ -62,6 +63,9 @@ try:
# but they end up naming f2py "f2py_release"/"f2py_dbg"
print_progress_header
(
"Setting up NumPy..."
)
os
.
environ
[
"CC"
]
=
"ccache gcc"
print
"
\
n
doing 'build'
\
n
"
subprocess
.
check_call
([
PYTHON_EXE
,
"setup.py"
,
"build"
],
cwd
=
NUMPY_DIR
,
env
=
env
)
print_progress_header
(
"Installing NumPy..."
)
...
...
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