Commit 406f1ca7 authored by Tres Seaver's avatar Tres Seaver

Define 'headers' as part of the feature, too.

parent a32514cc
...@@ -29,6 +29,7 @@ def read(*rnames): ...@@ -29,6 +29,7 @@ def read(*rnames):
Cwrapper = Feature( Cwrapper = Feature(
"C wrapper", "C wrapper",
standard = True, standard = True,
headers=[os.path.join('src', 'zope', 'proxy', 'proxy.h')],
ext_modules=[Extension("zope.proxy._zope_proxy_proxy", ext_modules=[Extension("zope.proxy._zope_proxy_proxy",
[os.path.join('src', 'zope', 'proxy', [os.path.join('src', 'zope', 'proxy',
"_zope_proxy_proxy.c") "_zope_proxy_proxy.c")
...@@ -42,10 +43,8 @@ py_impl = getattr(platform, 'python_implementation', lambda: None) ...@@ -42,10 +43,8 @@ py_impl = getattr(platform, 'python_implementation', lambda: None)
is_pypy = py_impl() == 'PyPy' is_pypy = py_impl() == 'PyPy'
if is_pypy: if is_pypy:
features = {} features = {}
headers = []
else: else:
features = {'Cwrapper': Cwrapper} features = {'Cwrapper': Cwrapper}
headers=[os.path.join('src', 'zope', 'proxy', 'proxy.h')],
setup(name='zope.proxy', setup(name='zope.proxy',
version = '4.0.0dev', version = '4.0.0dev',
...@@ -78,7 +77,6 @@ setup(name='zope.proxy', ...@@ -78,7 +77,6 @@ setup(name='zope.proxy',
package_dir = {'': 'src'}, package_dir = {'': 'src'},
namespace_packages=['zope',], namespace_packages=['zope',],
features=features, features=features,
headers=headers,
test_suite = 'zope.proxy', test_suite = 'zope.proxy',
install_requires=[ install_requires=[
'zope.interface', 'zope.interface',
......
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