I am authoring python package A.
Optimally my package would use some tools from the third party package B.
However, I know that package B fails to install on some systems and I have included as a backup into A a less efficient way to do the same things package B does.
Is there a way to write my setup.py
such that
1) When package A is installed, an attempt is made to install package B as well
2) If the attempt to install B fails, the installation of A continues as if nothing happened (maybe at most a warning is printed)