-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update paths when using Ananaconda #20
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,6 +81,9 @@ In the build folder | |
#On Linux | ||
> CXX=g++ cmake -DCMAKE_INSTALL_PREFIX=../install ../src/fringe | ||
|
||
# with anaconda (on Linux) | ||
> CXX=g++ cmake -DCMAKE_INSTALL_PREFIX=../install ../src/fringe -DCMAKE_PREFIX_PATH=$CONDA_PREFIX | ||
|
||
#If "conda install gxx_linux-64 / clangxx_osx-64" | ||
> CXX=${CXX} cmake -DCMAKE_INSTALL_PREFIX=../install ../src/fringe | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CXX=${CXX} is redundant when using conda compilers since these are automatically set when the environment is activated. I would remove that. |
||
|
||
|
@@ -99,3 +102,6 @@ export PYTHONPATH=$PYTHONPATH:path-to-install-folder/python | |
|
||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:path-to-install-folder/lib | ||
``` | ||
If using within an Anaconda environment: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Might be good to make this a sub-section to capture the quirks that you have to deal with, especially for conda. |
||
export GDAL_DIR=base-anaconda-directory/envs/fringe/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was thinking of also making a small PR on this issue that I ran into- I ended up changing it at during the
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Interesting, was this due to using a system installation of gdal? In my experience I always use gdal from conda so -DCMAKE_PREFIX_PATH=$CONDA_PREFIX is sufficient, but this is a neat trick in the general case. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh you are right! I had mixed it up with another setup that didn't have the anaconda gdal. The |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer adding the CONDA_PREFIX as a solution just like the GDAL one, in a later section below. I havent had to do this for GDAL / cython on couple of different setups.