<div dir="ltr">Dear all,<div><br></div><div>I have initiated a <a href="https://github.com/numpy/numpy/pull/5597">PR-5597</a>, which enables the reading of new flags from the site.cfg file.</div><div>@rgommers requested that I posted some information on this site, possibly somebody could test it on their setup.</div><div><br></div><div>So the PR basically enables reading these extra options in each section:</div><div><div>runtime_library_dirs : Add runtime library directories to the shared libraries (overrides the dreaded LD_LIBRARY_PATH)<br></div><div>extra_compile_args: Adds extra compile flags to the compilation<br></div><div>extra_link_args: Adds extra flags when linking to libraries</div><div><br></div><div>Note that this PR will "fix" a lot of issues down the line. Specifically all software which utilises numpy's distutils will benefit from this.</div><div>As an example, I have successfully set runtime_library_dirs for site.cfg in numpy, where scipy, petsc4py, pygsl, slepc4py utilises these flags and this enables me to create environments without the need for LD_LIBRARY_PATH.</div><div><br></div><div>The other options simply adds to the flexibility of the compilation to test different optimisations etc.</div><div><br></div><div>For instance my OpenBLAS section looks like this:</div><div><div>[openblas]<br></div><div>library_dirs = /opt/openblas/0.2.13/gnu-4.9.2/lib</div><div>include_dirs = /opt/openblas/0.2.13/gnu-4.9.2/include</div><div>runtime_library_dirs = /opt/openblas/0.2.13/gnu-4.9.2/lib</div></div><div><br></div><div>I hope this can be of use to somebody else than me :)</div><div><br></div><div>Feel free to test it and provide feedback!</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Kind regards Nick</div></div></div>
</div></div>