Commit d9b29b33 authored by Robert Bradshaw's avatar Robert Bradshaw Committed by Stefan Behnel

Update docs on sharing pxd files.

parent eb3ac387
...@@ -128,6 +128,9 @@ It searches for this file along the path for include files ...@@ -128,6 +128,9 @@ It searches for this file along the path for include files
(as specified by ``-I`` command line options or the ``include_path`` (as specified by ``-I`` command line options or the ``include_path``
option to ``cythonize()``), as well as ``sys.path``. option to ``cythonize()``), as well as ``sys.path``.
Using ``package_data`` to install ``.pxd`` files in your ``setup.py`` script
allows other packages to cimport items from your module as a dependency.
Also, whenever you compile a file :file:`modulename.pyx`, the corresponding Also, whenever you compile a file :file:`modulename.pyx`, the corresponding
definition file :file:`modulename.pxd` is first searched for along the definition file :file:`modulename.pxd` is first searched for along the
include path (but not ``sys.path``), and if found, it is processed before include path (but not ``sys.path``), and if found, it is processed before
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment