[pypy-commit] cffi default: Pull request #61 fixing issue #182 (slightly edited):
arigo
noreply at buildbot.pypy.org
Fri May 22 10:27:15 CEST 2015
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r2084:7b25b57f0d2e
Date: 2015-05-22 10:27 +0200
http://bitbucket.org/cffi/cffi/changeset/7b25b57f0d2e/
Log: Pull request #61 fixing issue #182 (slightly edited):
Create an interpreter and platform specific wheel even on PyPy
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -115,7 +115,15 @@
if __name__ == '__main__':
- from setuptools import setup, Extension
+ from setuptools import setup, Distribution, Extension
+
+ class CFFIDistribution(Distribution):
+ def has_ext_modules(self):
+ # Event if we don't have extension modules (e.g. on PyPy) we want to
+ # claim that we do so that wheels get properly tagged as Python
+ # specific. (thanks dstufft!)
+ return True
+
ext_modules = []
if '__pypy__' not in sys.builtin_module_names:
ext_modules.append(Extension(
@@ -154,6 +162,7 @@
license='MIT',
+ distclass=CFFIDistribution,
ext_modules=ext_modules,
install_requires=[
More information about the pypy-commit
mailing list