While debugging some dask-mpi issue I noticed that tests fail if openmpi is installed with apt rather than conda. xref dask/dask-mpi#71 (comment)
This seems to be because distributed.utils_test.popen assumes all binaries will be within the sys.prefix which in this case is not true.
|
os.environ.get("DESTDIR", "") + sys.prefix, "bin", args[0] |
I would assume that popen(["foo", ...]... would call the same binary that which foo displays.
It seems this was done in #1954 but there's isn't much context as to why this was done. @mrocklin could you shed any light on this?
While debugging some
dask-mpiissue I noticed that tests fail ifopenmpiis installed withaptrather thanconda. xref dask/dask-mpi#71 (comment)This seems to be because
distributed.utils_test.popenassumes all binaries will be within thesys.prefixwhich in this case is not true.distributed/distributed/utils_test.py
Line 1053 in 942f235
I would assume that
popen(["foo", ...]...would call the same binary thatwhich foodisplays.It seems this was done in #1954 but there's isn't much context as to why this was done. @mrocklin could you shed any light on this?