Commit 214c8571 authored by Marius Wachtler's avatar Marius Wachtler

add the _locale module

The static variables should be fine because this is compiled as shared object which we the GC will automatically scan.
parent 6f423915
......@@ -176,6 +176,7 @@ add_custom_command(OUTPUT ${STDMODULES}
Modules/termios.c
Modules/_cursesmodule.c
Modules/mmapmodule.c
Modules/_localemodule.c
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
add_custom_target(sharedmods ALL DEPENDS ${CMAKE_BINARY_DIR}/from_cpython/Lib/_multiprocessing.pyston.so)
......
# expected: fail
from test.test_support import run_unittest
from _locale import (setlocale, LC_NUMERIC, localeconv, Error)
try:
......
# expected: fail
from test.test_support import run_unittest, verbose
import unittest
import locale
......
......@@ -146,6 +146,13 @@ def elementtree_ext():
sources = [relpath('Modules/_elementtree.c')],
depends = pyexpat.depends,
)
@unique
def locale_ext():
return Extension("_locale", sources = map(relpath, [
"Modules/_localemodule.c",
]))
ext_modules = [future_builtins_ext(),
multiprocessing_ext(),
pyexpat_ext(),
......@@ -159,8 +166,10 @@ ext_modules = [future_builtins_ext(),
readline_ext(),
termios_ext(),
mmap_ext(),
locale_ext()
]
builtin_headers = map(relpath, glob.glob("Include/*.h"))
for m in ext_modules:
......
......@@ -128,8 +128,6 @@ test_kqueue Not really a failure, but it tries to skip itself and we
test_lib2to3 [unknown]
test_linuxaudiodev [unknown]
test_list longs as slice indices
test__locale No module named _locale
test_locale [unknown]
test_long_future [unknown]
test_macos Not really a failure, but it tries to skip itself and we don't support that
test_macostools Not really a failure, but it tries to skip itself and we don't support that
......
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