conda build crashes on non-BSD systems if bash is not installed #3819
Labels
locked
[bot] locked due to inactivity
stale::closed
[bot] closed after being marked as stale
stale
[bot] marked as stale due to inactivity
Actual Behavior
If bash is not installed (as it is not in, among others, the official Anaconda docker images), then conda-build crashes.
@xhochy traced this back to bash being hardcoded into build.py: https://github.com/conda/conda-build/blob/master/conda_build/build.py#L82
There's some chatter on the Docker images,
anaconda/docker-images#120 (comment)
anaconda/docker-images#160
but there doesn't seem to be a conda-build issue for this yet, and it seems like conda-build really ought to not crash regardless of the image.
@mingwandroid suggested that conda-build could depend on bash: anaconda/docker-images#159 (comment)
It also seems worth asking whether conda-build even really needs bash --- if conda-build can get by with /bin/sh on BSD systems, could it do the same on, for example, Alpine systems?
https://github.com/conda/conda-build/blob/master/conda_build/build.py#L79
(Obviously,
apk add bash
works as a workaround, and presumably installing bash will also solve the problem on non-Alpine systems.)Expected Behavior
conda build should not crash.
Steps to Reproduce
Try to run conda build on a non-BSD image that does not have bash. I'm partial to frolvlad/alpine-miniconda3 since that's what taught me how to make conda activate work, but as mentioned, continuumio/miniconda3 also does not have bash, so conda-build does not work. anaconda/docker-images#162 (comment)
Output of conda info
The text was updated successfully, but these errors were encountered: