wrf-python icon indicating copy to clipboard operation
wrf-python copied to clipboard

Instructions for installing from source are out of date

Open afernandezody opened this issue 5 months ago • 4 comments

Hello. An Ubuntu 24 box is using pip 24.0 where the latest available version wrf-python is 1.3.4.1, which crashes because it cannot find 'numpy.distutils.' Before proceeding any further, I was wondering if this dependency has been eliminated in v 1.4.1. Thanks.

afernandezody avatar Nov 24 '25 20:11 afernandezody

@afernandezody, it should be addressed in v1.4.1. However, you'll need to install via mamba/conda or directly from the source code rather than pip for the time being.

Unfortunately, we have quite limited resources for WRF-Python maintenance and the PyPI releases aren't working properly at the moment.

I'm going to close this out for now, but feel free to reopen if you have questions or concerns.

kafitzgerald avatar Nov 24 '25 21:11 kafitzgerald

@kafitzgerald. The problem now is that the instructions for compiling from source seem outdated (they refer to setup.py instead of pyproject.toml), and there's a couple of open threads related to pyproject.toml issues. Thanks.

afernandezody avatar Nov 24 '25 23:11 afernandezody

@afernandezody, thanks for noting that! It must've have been missed when we updated the packaging recently. I'll work on getting that updated and leave this open until that's been done.

If you don't need OpenMP support, you should be able to do something like the following so long as you have the necessary compilers available:

git clone https://github.com/NCAR/wrf-python.git
cd wrf-python
pip install .

kafitzgerald avatar Nov 25 '25 00:11 kafitzgerald

That worked. Thanks!

afernandezody avatar Nov 25 '25 12:11 afernandezody