explosion / cython-blis

💥 Fast matrix-multiplication as a self-contained Python library – no system dependencies!
Other
219 stars 37 forks source link

Build fails with multi-token CC env. variable #61

Closed sotlampr closed 3 years ago

sotlampr commented 3 years ago

Hi!

It appears that trying to build blis with a CC consisting of multiple tokens, e.g. CC="ccache clang", fails. This is a pretty common way to set the compiler executable AFAIK, I have this exact variable in my profile and rarely encountered problems with other software.

Here is a short proof of concept

#!/bin/bash

cat << END > .cc
#!/bin/bash
eval \$@
END
chmod +x .cc

CC="$(pwd)/.cc clang" pip wheel --no-binary :all: numpy

# Does not work
CC="$(pwd)/.cc clang" pip wheel --no-binary :all: blis

rm .cc

It thought you might want to look into it.

Cheers!

adrianeboyd commented 3 years ago

Thanks for the report, we will look into it!