Commit 5576cae7 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Enable the mmap module

parent 0f8114cf
...@@ -125,6 +125,7 @@ add_custom_command(OUTPUT ...@@ -125,6 +125,7 @@ add_custom_command(OUTPUT
${CMAKE_BINARY_DIR}/lib_pyston/grp.pyston.so ${CMAKE_BINARY_DIR}/lib_pyston/grp.pyston.so
${CMAKE_BINARY_DIR}/lib_pyston/termios.pyston.so ${CMAKE_BINARY_DIR}/lib_pyston/termios.pyston.so
${CMAKE_BINARY_DIR}/lib_pyston/_curses.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 COMMAND ${CMAKE_BINARY_DIR}/pyston setup.py build --build-lib ${CMAKE_BINARY_DIR}/lib_pyston
DEPENDS DEPENDS
pyston pyston
...@@ -150,5 +151,6 @@ add_custom_command(OUTPUT ...@@ -150,5 +151,6 @@ add_custom_command(OUTPUT
Modules/grpmodule.c Modules/grpmodule.c
Modules/termios.c Modules/termios.c
Modules/_cursesmodule.c Modules/_cursesmodule.c
Modules/mmapmodule.c
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
add_custom_target(sharedmods DEPENDS ${CMAKE_BINARY_DIR}/lib_pyston/_multiprocessing.pyston.so) add_custom_target(sharedmods DEPENDS ${CMAKE_BINARY_DIR}/lib_pyston/_multiprocessing.pyston.so)
This diff is collapsed.
...@@ -88,6 +88,12 @@ def termios_ext(): ...@@ -88,6 +88,12 @@ def termios_ext():
"Modules/termios.c", "Modules/termios.c",
])) ]))
@unique
def mmap_ext():
return Extension("mmap", sources = map(relpath, [
"Modules/mmapmodule.c",
]))
@unique @unique
def pyexpat_ext(): def pyexpat_ext():
define_macros = [('HAVE_EXPAT_CONFIG_H', '1'),] define_macros = [('HAVE_EXPAT_CONFIG_H', '1'),]
...@@ -136,7 +142,9 @@ ext_modules = [future_builtins_ext(), ...@@ -136,7 +142,9 @@ ext_modules = [future_builtins_ext(),
ctypes_test_ext(), ctypes_test_ext(),
grp_ext(), grp_ext(),
curses_ext(), curses_ext(),
termios_ext()] termios_ext(),
mmap_ext(),
]
builtin_headers = map(relpath, glob.glob("Include/*.h")) builtin_headers = map(relpath, glob.glob("Include/*.h"))
......
../../from_cpython/Lib/test/test_mmap.py
\ No newline at end of file
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