Dear Binder aficionados,
I created a binder for my python package hosted on GitHub.
In a couple of days I am giving a tutorial and would like people to run the notebooks inside docs/tutorials
in the repo.
The problem is the following: a couple of notebooks show how to wrap my package with an external package that is not part of the core dependencies (sherpa).
Being not among the core dependencies, and hence not in the setup.py
's install_requires
, the binder image (relying on the setup.py
) was built without this additional package.
In order to solve this I created an environment.yaml
(it’s in the repo) containing this additional external dependency. Still, when I re-launch binder, the setup.py
and not the environment.yaml
is used. Therefore I cannot execute in binder my example notebooks with the wrapper - the additional package is missing.
Any suggestion? Is there a way to specify to binder which build method has to be used?
I know you can add optional dependencies in setup.py
, I am not sure though binder will run the appropriate extra command (e.g. python setup.py[with_sherpa]
) when building.
Many thanks in advance,
Cosimo