I'm using setuptools
to install a Python module that I'm working on. In addition to numpy
, scipy
, ..., whose presence I can assure with install_requires = [...]
, my module also depends on a Python module - let's call it specialmodule
- that is a Python interface to a program that is neither an egg, nor a single .py-file or a VCS repo (so Dependencies that aren’t in PyPI is not applicable). The program is written in C++ and has a Python interface, and can either be built from source after cloning from git, or obtained as a tar archive.
Is there a way to use setuptools
to check the existence of this module (which is in PYTHONPATH
), and if it can not be found, display some message to the user that the module is missing (and if possible, also some instructions on how to get it)?
Edit: Also, if there is a more elegant way to do this with a different approach than with setuptools
, I'd be glad to hear! But I would really like to check directly on installation, not during runtime of my module.