Closed pklimov closed 7 months ago
I will push this feature up in the list of TODO.
I have looked at the possible approaches to PyPi distribution.
setup.py
code. The user would have to set NOMAD_HOME
to their NOMAD installation directory.Thanks for this analysis. I really prefer the first approach : ship pre-compiled wheels for common platforms. I agree about the LGPL licence.
I suppose that, to obtain the binaries, your approach relies on a modified setup_PyNomad.py script ? How to modify it to obtain static link with nomad libraries ? You can create a pull request to add a modified setup_PyNomadStatic.py.
In my experiment I modified the relevant CMakeLists.txt
files to build both static and shared version of the nomad{Algo,Eval,Util}
libraries. The approach I took compiles the underlying objects only once, the compilation time does not increase noticeably. I have then slightly lobotomized the setup.py
script to do my bidding.
A slight problem is I have not tested this on any other platform beside Linux. I'll put the necessary modifications together and make a pull request ASAP, the testing can be done once at least a proof of concept exists.
Done in v.4.4.0
I found an unofficial
pip
installation path to an older and possibly modified version of NOMAD. Would be convenient to have an officialpip
installation path to the latest version.