Author: Armin Rigo <ar...@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) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit