Skip to content
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

conda: separate base envs by Python version #182

Merged
merged 5 commits into from
Jan 3, 2018

Conversation

minrk
Copy link
Member

@minrk minrk commented Jan 3, 2018

downgrading the root env from Python 3.6 to 2.7 (or even 3.5 in some cases) is always very expensive and can fail due to the complicated transaction.

This fixes issues where builds fail when Python 2 is requested.

What I'd like to do eventually, and we will *need* to do once certain packages start dropping py2 support, is to handle Python 2 differently by putting it in a different env, like we do for pip. But for now, it's simpler to handle Python 2 the same as Python 3.

Python 2 is handled specially by putting it in a different env, just like with requirements.txt.

closes #28

minrk added 5 commits January 3, 2018 16:38
this will allow us to create different base envs based on Python major.minor versions
if env specifies a version of Python other than the default,
a different base env will be selected.

This should fix some issues where switching Python versions on the base env with a bunch of packages installed can fail,
and will always produce a huge amount of churn.

Future change:

- place py2 in a separate env, like we do for requirements.txt
@yuvipanda yuvipanda merged commit 839de1e into jupyterhub:master Jan 3, 2018
@yuvipanda
Copy link
Collaborator

Thanks @minrk!

yuvipanda added a commit to yuvipanda/mybinder.org-deploy that referenced this pull request Jan 3, 2018
jupyterhub/repo2docker#182,
jupyterhub/repo2docker#181 and
jupyterhub/repo2docker#183 are the major
changes. The image is bigger now, since it's no longer based
on alpine.
@minrk minrk deleted the conda-python-runtime branch January 5, 2018 14:55
markmo pushed a commit to markmo/repo2docker that referenced this pull request Jan 22, 2021
conda: separate base envs by Python version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

handle Python 2 in environment.yml
2 participants