Author: Armin Rigo <[email protected]>
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=[
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit