Skip to content

Adding environment variables for easier intall#71

Merged
jellis18 merged 1 commit into
masterfrom
suitesparse-env-variable
Sep 12, 2021
Merged

Adding environment variables for easier intall#71
jellis18 merged 1 commit into
masterfrom
suitesparse-env-variable

Conversation

@jellis18
Copy link
Copy Markdown
Collaborator

@jellis18 jellis18 commented Sep 12, 2021

This PR implements a few changes in the way suite-sparse is found on installation. Previously the include and library paths were hardcocded. Now they can be controlled through environment variables:

If you suite-sparse library is installed in a non-standard place and you get errors when installing with pip you can use the environment
variables:

  • SUITESPARSE_INCLUDE_DIR
  • SUITESPARSE_LIBRARY_DIR

at runtime so the compiler can find them. For example, lets say your suite-sparse installation is in /opt/local then you can run

SUITESPARSE_INCLUDE_DIR=/opt/local/include SUITESPARSE_LIBRARY_DIR=/opt/local/lib pip install scikit-sparse

This should fix #67

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't find "cholmod.h" while installing using pip on macOS

1 participant