[Distutils] Dynamic linking between Python modules (was: Beyond wheels 1.0: helping downstream, FHS and more)

Wes Turner wes.turner at gmail.com
Tue May 19 22:25:51 CEST 2015


On Tue, May 19, 2015 at 2:34 PM, Chris Barker <chris.barker at noaa.gov> wrote:

> On Tue, May 19, 2015 at 10:18 AM, Leonardo Rochael Almeida <
> leorochael at gmail.com> wrote:
>
>> What if instead of focusing on pip being able to install more than just
>> python packages, we made sure that a virtualenv was as strict subset of,
>> say, a conda environment? This way, going from virtualenv to, say, conda
>> would not be a toss-out, but an upgrade.
>>
>
> cool idea -- though it's kind of backwards - i.e. conda installs stuff
> outside of the python environment. So I'm not sure if you could shoehorn
> this all together in that way. At least with a significant re-engineering
> of conda, in which case, you've kind of built a new plug-in  or add-on to
> pip that does more.
>

I've tried to do something like this with my (admittedly opinionated)
dotfiles: https://westurner.org/dotfiles/venv

    # WORKON_HOME ~= CONDA_ENVS_PATH
    workon <virtualenvname>
    workon_conda <condaenvname>  # wec <tab>
    lscondaenvs


virtualenv: deactivate()
condaenv: source deactivate
...
https://github.com/westurner/dotfiles/blob/develop/etc/bash/08-bashrc.conda.sh#L95

It's still pretty verbose and rough around the edges.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20150519/cea0a4ee/attachment.html>


More information about the Distutils-SIG mailing list