llnl-fesp / flora

Solves, in a 2-D domain, for the linearized stability of a long thin axisymetric equilibrium.
GNU Lesser General Public License v2.1
1 stars 0 forks source link

Install Instructions #1

Open tmqian opened 1 month ago

tmqian commented 1 month ago

Bill,

Thank you for making this package available and so easy to use.

Today I noticed that the ($ python setup.py build install) command recommended in the README no longer works. It did work on June 3. It turns out python setup.py was deprecated (link: https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html)

Instead ($ pip install -e .) is recommended. I confirmed that this works for flora GLR. I would like to make the one line edit on the README for future users, but I do not have edit permission. You can also make it yourself. Let me know what's best.

Tony

tmqian commented 1 month ago

Update: it turns out pip install -e . does not work either.

I had done a hybrid install with pip install and python setup.py, pip printed that the install was successful, but python could not run import flora. I then found a clean build works for neither pip nor setup.py independently.

The issue was resolved by reverting to python 3.11 instead of 3.12. conda create --name myenv -c conda-forge python=3.11

In 3.11 pip install does not work but the original install instructions are OK. For the future, it would be useful to make pip install work as well because the current method is deprecated.