I have a Python package for scientific work that, as part of it, runs an executable (via subprocess) that is compiled from a single C source file, and is otherwise unrelated to Python (ie, it isn't an extension).
We'd like to include the C source in the package, such that setup.py (we are using setuptools) will compile it and the package can access the executable, either via pkg_resources or by installing it in the user's path along with scripts generated by console_scripts.
Is there a way we can do this? For maintainability reasons, we'd prefer not to convert the executable to a C extension, and having the command available is somewhat useful to our users anyway.