Author: Armin Rigo <[email protected]>
Branch:
Changeset: r2648:9fa50c74716e
Date: 2016-03-15 18:16 +0100
http://bitbucket.org/cffi/cffi/changeset/9fa50c74716e/
Log: Document issue #247
diff --git a/doc/source/cdef.rst b/doc/source/cdef.rst
--- a/doc/source/cdef.rst
+++ b/doc/source/cdef.rst
@@ -109,6 +109,14 @@
install_requires=["cffi>=1.0.0"],
)
+* Note that some bundler tools that try to find all modules used by a
+ project, like PyInstaller, will miss ``_cffi_backend`` in the
+ out-of-line mode because your program contains no explicit ``import
+ cffi`` or ``import _cffi_backend``. You need to add
+ ``_cffi_backend`` explicitly (as a "hidden import" in PyInstaller,
+ but it can also be done more generally by adding the line ``import
+ _cffi_backend`` in your main program).
+
Note that CFFI actually contains two different ``FFI`` classes. The
page `Using the ffi/lib objects`_ describes the common functionality.
It is what you get in the ``from package._foo import ffi`` lines above.
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit