Discussion:
[conda] pipdeptree-like thing for conda?
Chris Withers
2018-04-05 07:42:55 UTC
Permalink
Hi All,

Is there something like pipdeptree for conda?

Specifically, how would I programatically go about finding out what the
dependencies of a particular installable (but not necessarily installed)
package are?

cheers,

Chris
--
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 https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/9547454f-8e66-a67d-4cd2-703460528935%40withers.org.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Chris Withers
2018-04-06 07:38:38 UTC
Permalink
Apologies if I'm missing something, but that doesn't tell me what
depended on what, right?
(just the whole set of packages that are required by 'installable').

Chris
Right now, easiest solution is probably something like
    conda create -nt --dry-run installable
Hi All,
Is there something like pipdeptree for conda?
Specifically, how would I programatically go about finding out
what the dependencies of a particular installable (but not
necessarily installed) package are?
cheers,
Chris
--
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,
Visit this group at
https://groups.google.com/a/continuum.io/group/conda/
<https://groups.google.com/a/continuum.io/group/conda/>.
To view this discussion on the web visit
https://groups.google.com/a/continuum.io/d/msgid/conda/9547454f-8e66-a67d-4cd2-703460528935%40withers.org
<https://groups.google.com/a/continuum.io/d/msgid/conda/9547454f-8e66-a67d-4cd2-703460528935%40withers.org>.
For more options, visit
https://groups.google.com/a/continuum.io/d/optout
<https://groups.google.com/a/continuum.io/d/optout>.
--
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 https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/e40725a9-422c-e0e1-a269-4c820ebf43a0%40withers.org.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Chris Withers
2018-04-09 06:09:45 UTC
Permalink
Thanks, this is perfect!
https://gist.github.com/ericdill/9942ac55c2c9f6a550973dd2dc3653a4
Making it for things that aren't necessarily installed is also
possible.  You'd download the repodata.json for your channel, and
https://repo.continuum.io/pkgs/main/linux-64/repodata.json
The gist above won't need much modification - the repodata is pretty
close to what that gist used.
Post by Chris Withers
how would I programatically go about finding out what the
dependencies of a particular installable package are?
It will give you all the dependencies, the full list of
dependencies, and only what's required to fully satisfy all
dependencies of your installable.  They won't be "treeified" for
you.  But the relationship map wasn't exactly part of the question
as posed.
You can also use conda search installable --info to see the
direct, declared dependencies for installable.
Right now conda itself doesn't have user-exposed tools to display
dependency graphs of environments. That's something that's in the
backlog though.  There very likely may be other tools built around
conda environments that can do that already though.  Google it.
Apologies if I'm missing something, but that doesn't tell me
what depended on what, right?
(just the whole set of packages that are required by
'installable').
Chris
Post by Chris Withers
Right now, easiest solution is probably something like
  conda create -nt --dry-run installable
On Thu, Apr 5, 2018 at 2:42 AM, Chris Withers
Hi All,
Is there something like pipdeptree for conda?
Specifically, how would I programatically go about
finding out what the dependencies of a particular
installable (but not necessarily installed) package are?
cheers,
Chris
--
You received this message because you are subscribed to
the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails
Visit this group at
https://groups.google.com/a/continuum.io/group/conda/
<https://groups.google.com/a/continuum.io/group/conda/>.
To view this discussion on the web visit
https://groups.google.com/a/continuum.io/d/msgid/conda/9547454f-8e66-a67d-4cd2-703460528935%40withers.org
<https://groups.google.com/a/continuum.io/d/msgid/conda/9547454f-8e66-a67d-4cd2-703460528935%40withers.org>.
For more options, visit
https://groups.google.com/a/continuum.io/d/optout
<https://groups.google.com/a/continuum.io/d/optout>.
--
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,
Visit this group at
https://groups.google.com/a/continuum.io/group/conda/
<https://groups.google.com/a/continuum.io/group/conda/>.
To view this discussion on the web visit
https://groups.google.com/a/continuum.io/d/msgid/conda/CAOmq0fhMm1hJNLnCZypYvFzwYT%2B9Kb2%2BwK76bj9kXncBVk_MEA%40mail.gmail.com
<https://groups.google.com/a/continuum.io/d/msgid/conda/CAOmq0fhMm1hJNLnCZypYvFzwYT%2B9Kb2%2BwK76bj9kXncBVk_MEA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit
https://groups.google.com/a/continuum.io/d/optout
<https://groups.google.com/a/continuum.io/d/optout>.
--
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 https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/b9fa717f-b99e-d8aa-c5d9-8377cf18672a%40withers.org.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Loading...