Discussion:
[conda] Configuring PATH / LD_LIBRARY_PATH environment variables in `conda develop`
E. Tadeu
2015-09-30 21:00:09 UTC
Permalink
Conda allows adding a python package in "development" mode through `conda
develop` by adding its directory to a conda.pth file (effectively the same
as adding it to PYTHONPATH).

Is there a way to also add directories to the PATH environment variable?
This is for projects that use a mix of C++ and Python, and have some shared
libraries that are not python extensions and that must be in the PATH in
Windows platform (or in LD_LIBRARY_PATH in Linux).

Thanks!
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at http://groups.google.com/a/continuum.io/group/conda/.
Ilan Schnell
2015-09-30 21:24:23 UTC
Permalink
No, there is no way currently to set PATH or LD_LIBRARY_PATH. It is not
clear to me which path should be added (prepended) to those environment
variables. But you can add a little bash script (which you then source) to
your project, which does whatever is necessary.

- Ilan
Post by E. Tadeu
Conda allows adding a python package in "development" mode through
`conda develop` by adding its directory to a conda.pth file (effectively
the same as adding it to PYTHONPATH).
Is there a way to also add directories to the PATH environment variable?
This is for projects that use a mix of C++ and Python, and have some shared
libraries that are not python extensions and that must be in the PATH in
Windows platform (or in LD_LIBRARY_PATH in Linux).
Thanks!
--
You received this message because you are subscribed to the Google Groups
"conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at http://groups.google.com/a/continuum.io/group/conda/.
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at http://groups.google.com/a/continuum.io/group/conda/.
E. Tadeu
2015-09-30 22:04:51 UTC
Permalink
Thanks for the quick answer, Ilan. The path to be added would be a
subdirectory of the project, such as `bin`.

Considering the script solution, is there a way for the `activate` command
to automatically source this script? Something like the
`/etc/conda/activate.d` mechanism, but for development projects instead of
conda packages.

Cheers,
Tadeu
Post by Ilan Schnell
No, there is no way currently to set PATH or LD_LIBRARY_PATH. It is not
clear to me which path should be added (prepended) to those environment
variables. But you can add a little bash script (which you then source) to
your project, which does whatever is necessary.
- Ilan
Post by E. Tadeu
Conda allows adding a python package in "development" mode through
`conda develop` by adding its directory to a conda.pth file (effectively
the same as adding it to PYTHONPATH).
Is there a way to also add directories to the PATH environment
variable? This is for projects that use a mix of C++ and Python, and have
some shared libraries that are not python extensions and that must be in
the PATH in Windows platform (or in LD_LIBRARY_PATH in Linux).
Thanks!
--
You received this message because you are subscribed to the Google Groups
"conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at http://groups.google.com/a/continuum.io/group/conda/.
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at http://groups.google.com/a/continuum.io/group/conda/.
Loading...