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