On Mon, May 18, 2015 at 8:24 PM, Vincent Povirk <madewokh...@gmail.com>
wrote:

> > But maybe all you really need to do is teach conda to understand pip
> > meta-data, and/or make sure that conda write pip-compatible meta data.
>
> Forgive me, I'm trying to follow as someone who is working with PyPI
> but hasn't really used conda or pip. Does a conda environment contain
> its own site-packages directory,


If python was installed by conda, yes.  I get a bit confused here. For one
I have only used conda with Anaconda, and Anaconda starts you off with a
python environment (for one thing, conda itself is written in Python, so
you need that...).

So if one were to start from scratch with conda, I'm not entirely sure what
you would get. but I _think_ you could run conda with some_random_python,
then use it to set up a conda environment with it's own python...

But for the current discussion, yes, a conda environment has it's own
site-packages, etc, its own complete python install.

and does pip correctly install
> packages to that directory?


yes. it does.


> If so, I expect supporting PEP 376 would
> help with this.


yes, I think that would help. though conda is about more-than-python, so it
would still need to manage dependency and meta-data its own way. But I
would think it could duplicate the effort python packages. But I can't
speak for the conda developers.

It doesn't help either package manager install dependencies from
> outside their repos, it just means that pip will work if the user
> installs dependencies from conda first.


and if we can get vice-versa to work, also -- things would be easier.


> To be able to install
> dependencies, either conda needs to know enough about PyPI to find a
> package's dependencies itself (and at that point, I wonder how much
> value pip adds compared to 'wheel'),


good point -- and conda does know a fair bit about PyPi already -- there is
a

conda-skeleton  pypi

command that goes and looks on pypi fo ra package, and builds a conda build
script for it automagically -- and it works without modification much of
the time, including dependencies.

So much of the logic is there.

-Chris


-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

chris.bar...@noaa.gov
_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to