Hi,
I'm modifying a python project which uses setuptools for installation.
The project installs an entry point as such:
setup_args["entry_points"] = { "console_scripts": ["w1thermsensor
= w1thermsensor.cli:cli [CLI]"] }
where [CLI] is a reference to an extra_requires entry. This entry
looks like this:
extras_require=dict(CLI="click>=7.0")
With these two lines, the current behavior is that the w1thermsensor
entry point is *always* installed when "setup.py install" is invoked,
but the entry point will cause an error if its dependencies are not
available.
I would like to change the behavior, so that the entry point is *not
installed* if the extra dependencies are not available (and perhaps
also show a warning, indicating that this entry point has not been
installed).
How can I do this?
Cheers,
Jonatan