Commit 5d3763ad authored by Boxiang Sun's avatar Boxiang Sun

copy complexobject.cpp from CPython and enable cmath module

parent b2d7f222
...@@ -36,6 +36,7 @@ file(GLOB_RECURSE STDMODULE_SRCS Modules ...@@ -36,6 +36,7 @@ file(GLOB_RECURSE STDMODULE_SRCS Modules
bufferedio.c bufferedio.c
bytesio.c bytesio.c
cache.c cache.c
cmathmodule.c
connection.c connection.c
cStringIO.c cStringIO.c
cursor.c cursor.c
...@@ -83,6 +84,7 @@ file(GLOB_RECURSE STDOBJECT_SRCS Objects ...@@ -83,6 +84,7 @@ file(GLOB_RECURSE STDOBJECT_SRCS Objects
bytes_methods.c bytes_methods.c
capsule.c capsule.c
cobject.c cobject.c
complexobject.c
dictproxy.c dictproxy.c
exceptions.c exceptions.c
floatobject.c floatobject.c
......
This diff is collapsed.
...@@ -39,6 +39,13 @@ def bz2_ext(): ...@@ -39,6 +39,13 @@ def bz2_ext():
"Modules/bz2module.c", "Modules/bz2module.c",
]), libraries = ['bz2']) ]), libraries = ['bz2'])
@unique
def cmath_ext():
return Extension("cmath", sources = map(relpath, [
"Modules/cmathmodule.c",
]))
@unique @unique
def ctypes_ext(): def ctypes_ext():
ext = Extension("_ctypes", sources = map(relpath, [ ext = Extension("_ctypes", sources = map(relpath, [
...@@ -144,6 +151,7 @@ ext_modules = [future_builtins_ext(), ...@@ -144,6 +151,7 @@ ext_modules = [future_builtins_ext(),
pyexpat_ext(), pyexpat_ext(),
elementtree_ext(), elementtree_ext(),
bz2_ext(), bz2_ext(),
cmath_ext(),
ctypes_ext(), ctypes_ext(),
ctypes_test_ext(), ctypes_test_ext(),
grp_ext(), grp_ext(),
......
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