dispatchrun / dispatch-py

Python package to develop applications with Dispatch.
https://pypi.org/project/dispatch-py/
Apache License 2.0
56 stars 3 forks source link

Add MANIFEST.in #141

Closed chriso closed 7 months ago

chriso commented 7 months ago

In #136 we split the C extension across frame.c and a few header files.

When setuptools tries to build the extension it doesn't seem to know about the headers. According to https://setuptools.pypa.io/en/latest/userguide/miscellaneous.html#controlling-files-in-the-distribution we need to bundle a MANIFEST.in file which tells setuptools what files are included in the sdist. The manifest I've provided copies the entire src directory via graft src. The build now succeeds.

pelletier commented 7 months ago

I think the canonical way to do this is the depends argument to Extension() created in setup.py.