Comments (5)
I will push this feature up in the list of TODO.
from nomad.
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 setNOMAD_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.
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.
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.
Done in v.4.4.0
from nomad.
Related Issues (20)
- Plans for F_TARGET in v4 HOT 1
- PyNomad is incompatible with Cython 3.0
- Conflict with MATLAB libstdc++.so.6
- The trouble when I ran test_gerad_norm.m HOT 1
- PyNomad Import Error in Python>3.6 HOT 7
- Unconverged Problem w/ NOMAD 4.4 MATLAB Interface Using "DISCO_MADS" HOT 8
- Invaling MEX-file when running nomadOpt() in MATLAB interface for Linux HOT 1
- NomadProblem not freed in C interface HOT 2
- Missing stdbool.h include in C interface header HOT 2
- LH_SEARCH for MATLAB interface HOT 3
- Exceptions may be thrown from C interface functions HOT 4
- Inconsistent return value from solveNomadProblem HOT 3
- Problem with 53 variables to be optimized using PyNOMAD; PSD_NOMAD not working; What other options do I have? HOT 11
- quadratic models with DMulti-MADS? HOT 1
- Evaluation fails for X0
- Binary vs Integer Variables HOT 1
- Multiple Starting Points for MATLAB interface HOT 4
- What dose 'Mesh minimum precision reached' mean? HOT 10
- RNG::setSeed complexity is O(seed_value)
- Wheels for Python 3.12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nomad.