From 4f7b7e4c4c89e72de9cfc9479253e4414b374209 Mon Sep 17 00:00:00 2001 From: Marius Gedminas Date: Mon, 16 Mar 2020 14:09:33 +0200 Subject: Stop installing C headers on PyPy Fixes #39. --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index af6aeec..76514b1 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,6 @@ from setuptools.command.build_ext import build_ext from setuptools import setup - class optional_build_ext(build_ext): """This class subclasses build_ext and allows the building of C extensions to fail. @@ -75,8 +74,10 @@ codeoptimization = [ is_pypy = platform.python_implementation() == 'PyPy' if is_pypy: ext_modules = [] + headers = [] else: ext_modules = codeoptimization + headers = [os.path.join('src', 'zope', 'proxy', 'proxy.h')] setup(name='zope.proxy', version='4.3.5.dev0', @@ -115,7 +116,7 @@ setup(name='zope.proxy', cmdclass={ 'build_ext': optional_build_ext, }, - headers=[os.path.join('src', 'zope', 'proxy', 'proxy.h')], + headers=headers, ext_modules=ext_modules, install_requires=[ 'zope.interface', -- cgit v1.2.1