Commit a6fa9d1a authored by Robert Bradshaw's avatar Robert Bradshaw

More extendable Setup.py

parent a0ecad50
...@@ -690,7 +690,6 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): ...@@ -690,7 +690,6 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
for entry in scope.var_entries: for entry in scope.var_entries:
if entry.type.is_pyobject and entry is not weakref_slot: if entry.type.is_pyobject and entry is not weakref_slot:
py_attrs.append(entry) py_attrs.append(entry)
print py_attrs
if py_attrs or weakref_slot in scope.var_entries: if py_attrs or weakref_slot in scope.var_entries:
self.generate_self_cast(scope, code) self.generate_self_cast(scope, code)
self.generate_usr_dealloc_call(scope, code) self.generate_usr_dealloc_call(scope, code)
......
import glob
from distutils.core import setup from distutils.core import setup
from distutils.extension import Extension from distutils.extension import Extension
from Cython.Distutils import build_ext from Cython.Distutils import build_ext
setup( ext_modules=[
name = 'Demos',
ext_modules=[
Extension("primes", ["primes.pyx"]), Extension("primes", ["primes.pyx"]),
Extension("spam", ["spam.pyx"]), Extension("spam", ["spam.pyx"]),
# Extension("numeric_demo", ["numeric_demo.pyx"]), ]
Extension("test", ["test.pyx"]),
Extension("func_pointers", ["func_pointers.pyx"]), for file in glob.glob("*.pyx"):
# Extension("inplace", ["inplace.pyx"]), if file != "numeric_demo.pyx":
# Extension("withGIL", ["withGIL.pyx"]), ext_modules.append(Extension(file[:-4], [file]))
Extension("class_members", ["class_members.pyx"]),
# Extension("inherit_bug", ["inherit_bug.pyx"]), setup(
Extension("override", ["override.pyx"]), name = 'Demos',
Extension("cond", ["cond.pyx"]),
# Extension("submodule.test", ["submodule/test.pyx"]),
Extension("errors", ["errors.pyx"]),
Extension("cpdef", ["cpdef.pyx"]),
Extension("range", ["range.pyx"]),
Extension("early_temps", ["early_temps.pyx"]),
Extension("ints", ["ints.pyx"]),
Extension("clear", ["clear.pyx"]),
Extension("detect_override", ["detect_override.pyx"]),
Extension("fixes", ["fixes.pyx"]),
],
cmdclass = {'build_ext': build_ext}, cmdclass = {'build_ext': build_ext},
# include_dirs = "/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3/" ext_modules = ext_modules,
) )
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