Closed valentineap closed 2 years ago
Just to confirm that after installing gfortran, my pip install cofi
succeeded.
It's possible to:
i. Register a Fortran compiler (and its libraries) as a dependency in conda
, but not with pip
as it's only for the Python ecosystem
ii. Raise a better error message
I'll work on raising a better error message very soon, and will leave this issue open until this has been implemented.
Making cofi
available through conda
is another short-term goal.
Wheels on M1 Mac is not supported yet because it's not supported by github actions. Here is a failed build job.
Another note is that we don't plan to include any forward code example in cofi
itself; instead, we include forward examples through cofi-examples
repo. The reason why Malcolm's RFC code is a part of cofi
now (temporarily) is that skbuild
seems to raise an error for pure Python package. I'm looking into this (whether we can remove RFC and let skbuild
work) now.
Wheels on M1 Mac is not supported yet because it's not supported by github actions. Here is a failed build job.
Another note is that we don't plan to include any forward code example in
cofi
itself; instead, we include forward examples throughcofi-examples
repo. The reason why Malcolm's RFC code is a part ofcofi
now (temporarily) is thatskbuild
seems to raise an error for pure Python package. I'm looking into this (whether we can remove RFC and letskbuild
work) now.
Fortran compiler is no longer needed in current version of cofi
, as we've managed to make skbuild
and cibuildwheels
work without any compiled code. See pull request #30.
Still, just in case we will have compiled library in our source code in the future, it's meaningful to handle the packaging installation step to raise a better error message. Please see #31 for the fix.
I attempted to install cofi on my new desktop. It seems I have not yet installed a fortran compiler. As a result the
pip install
fails with an ugly set of errors: err.logThe key part seems to be:
Is it possible to either: i. Register a Fortran compiler as a dependency and automagically install one as needed, or ii. Fail gracefully with a useful error message if Fortran isn't available?
Full command history as follows: