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
5576cae7
Commit
5576cae7
authored
Sep 10, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable the mmap module
parent
0f8114cf
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
730 additions
and
1 deletion
+730
-1
from_cpython/CMakeLists.txt
from_cpython/CMakeLists.txt
+2
-0
from_cpython/Lib/test/test_mmap.py
from_cpython/Lib/test/test_mmap.py
+718
-0
from_cpython/setup.py
from_cpython/setup.py
+9
-1
test/cpython/test_mmap.py
test/cpython/test_mmap.py
+1
-0
No files found.
from_cpython/CMakeLists.txt
View file @
5576cae7
...
...
@@ -125,6 +125,7 @@ add_custom_command(OUTPUT
${
CMAKE_BINARY_DIR
}
/lib_pyston/grp.pyston.so
${
CMAKE_BINARY_DIR
}
/lib_pyston/termios.pyston.so
${
CMAKE_BINARY_DIR
}
/lib_pyston/_curses.pyston.so
${
CMAKE_BINARY_DIR
}
/lib_pyston/mmap.pyston.so
COMMAND
${
CMAKE_BINARY_DIR
}
/pyston setup.py build --build-lib
${
CMAKE_BINARY_DIR
}
/lib_pyston
DEPENDS
pyston
...
...
@@ -150,5 +151,6 @@ add_custom_command(OUTPUT
Modules/grpmodule.c
Modules/termios.c
Modules/_cursesmodule.c
Modules/mmapmodule.c
WORKING_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
)
add_custom_target
(
sharedmods DEPENDS
${
CMAKE_BINARY_DIR
}
/lib_pyston/_multiprocessing.pyston.so
)
from_cpython/Lib/test/test_mmap.py
0 → 100644
View file @
5576cae7
This diff is collapsed.
Click to expand it.
from_cpython/setup.py
View file @
5576cae7
...
...
@@ -88,6 +88,12 @@ def termios_ext():
"Modules/termios.c"
,
]))
@
unique
def
mmap_ext
():
return
Extension
(
"mmap"
,
sources
=
map
(
relpath
,
[
"Modules/mmapmodule.c"
,
]))
@
unique
def
pyexpat_ext
():
define_macros
=
[(
'HAVE_EXPAT_CONFIG_H'
,
'1'
),]
...
...
@@ -136,7 +142,9 @@ ext_modules = [future_builtins_ext(),
ctypes_test_ext
(),
grp_ext
(),
curses_ext
(),
termios_ext
()]
termios_ext
(),
mmap_ext
(),
]
builtin_headers
=
map
(
relpath
,
glob
.
glob
(
"Include/*.h"
))
...
...
test/cpython/test_mmap.py
0 → 120000
View file @
5576cae7
..
/
..
/
from_cpython
/
Lib
/
test
/
test_mmap
.
py
\ No newline at end of file
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