[pypy-commit] cffi default: More comments for e59662b013b4
arigo
pypy.commits at gmail.com
Sun Feb 11 04:52:29 EST 2018
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r3095:2d01bb9db3de
Date: 2018-02-11 10:52 +0100
http://bitbucket.org/cffi/cffi/changeset/2d01bb9db3de/
Log: More comments for e59662b013b4
diff --git a/cffi/setuptools_ext.py b/cffi/setuptools_ext.py
--- a/cffi/setuptools_ext.py
+++ b/cffi/setuptools_ext.py
@@ -169,6 +169,13 @@
generate_mod(os.path.join(self.build_lib, *module_path))
dist.cmdclass['build_py'] = build_py_make_mod
+ # distutils and setuptools have no notion I could find of a
+ # generated python module. If we don't add module_name to
+ # dist.py_modules, then things mostly work but there are some
+ # combination of options (--root and --record) that will miss
+ # the module. So we add it here, which gives a few apparently
+ # harmless warnings about not finding the file outside the
+ # build directory.
if dist.py_modules is None:
dist.py_modules = []
dist.py_modules.append(module_name)
More information about the pypy-commit
mailing list