Coder Social home page Coder Social logo

Add pip installation about nomad HOT 5 CLOSED

bbopt avatar bbopt commented on August 25, 2024
Add pip installation

from nomad.

Comments (5)

ctribes avatar ctribes commented on August 25, 2024 1

I will push this feature up in the list of TODO.

from nomad.

jan-provaznik avatar jan-provaznik commented on August 25, 2024

I have looked at the possible approaches to PyPi distribution.

  • Ship pre-compiled wheels for common platforms. To make the result as user friendly as possible, one would have to link the extension statically against nomadUtil, nomadEval and nomadAlgo libraries. I have actually explored the viability of this approach and it is possible (and fairly easy) to link the entire project statically. No more dependence on shared libraries. LGPL should be a non-issue in this case, the code of the interface is licensed under LGPL already.
  • Have the user compile the interface. This is possible with slight modification of the current setup.py code. The user would have to set NOMAD_HOME to their NOMAD installation directory.
  • Have the user compile the interface from some modified source, same as the unofficial version referenced here does it.

from nomad.

ctribes avatar ctribes commented on August 25, 2024

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.

from nomad.

jan-provaznik avatar jan-provaznik commented on August 25, 2024

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.

from nomad.

ctribes avatar ctribes commented on August 25, 2024

Done in v.4.4.0

from nomad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.