yig / PySPQR

Python wrapper for the sparse QR decomposition in SuiteSparseQR.
Creative Commons Zero v1.0 Universal
34 stars 28 forks source link

sparseqr/sparseqr_gen.py : add typical location for SuiteSparseQR_C.h #25

Closed SmithB closed 4 months ago

SmithB commented 4 months ago

On environments that use conda, the suitesparse include directory will often be under the user's conda prefix. We can find it with: include_dirs.append( join(os.environ['CONDA_PREFIX'], 'include', 'suitesparse'))

I added some logic to make sure there's a 'CONDA_PREFIX' in the environment.

yig commented 4 months ago

Looks good to me