Commit b2ae9a9b authored by Matthew Wilkes's avatar Matthew Wilkes

Comment out the C extension. This should build conditionally, but this is just for testing

parent 9100fcaa
......@@ -57,11 +57,11 @@ setup(name='zope.container',
packages=find_packages('src'),
package_dir = {'': 'src'},
namespace_packages=['zope'],
ext_modules=[Extension("zope.container._zope_container_contained",
[os.path.join("src", "zope", "container",
"_zope_container_contained.c")
], include_dirs=['include']),
],
#ext_modules=[Extension("zope.container._zope_container_contained",
# [os.path.join("src", "zope", "container",
# "_zope_container_contained.c")
# ], include_dirs=['include']),
# ],
extras_require=dict(
test=[
'zope.configuration',
......
......@@ -32,7 +32,7 @@
#include "Python.h"
#include "persistent/cPersistence.h"
#include "persistent/Persistence.h"
static PyObject *str_p_deactivate;
......
......@@ -174,13 +174,15 @@ WrapperType_Lookup(PyTypeObject *type, PyObject *name)
if (((PyTypeObject *)base) != &ProxyType) {
if (PyClass_Check(base))
dict = ((PyClassObject *)base)->cl_dict;
dict = GetAttrString(base, "__dict__");
Py_INCREF(dict);
else {
assert(PyType_Check(base));
dict = ((PyTypeObject *)base)->tp_dict;
}
assert(dict && PyDict_Check(dict));
res = PyDict_GetItem(dict, name);
Py_DECREF(dict);
if (res != NULL)
return res;
}
......
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