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

Get python packages from conda-forge, use mamba #2933

Merged
merged 9 commits into from
Oct 27, 2021

Conversation

yuvipanda
Copy link
Contributor

@yuvipanda yuvipanda commented Oct 26, 2021

Cartopy and Shapely feel very difficult to install from PyPI,
as they have no binary wheels and require a specific version of
proj and geos from apt. But the R sf package also requires
a specific version of proj from apt, and this sort of puts us
in an impossible situation as cartopy 0.20.* requires a newer
version than sf.

So we start using conda-forge to install some of these base
scientific packages instead. This reduces the scope for a lot
of these conflicts, and lets us peacefully use apt just for R.
I'm trying to only have pip packages depend on conda, not
the other way around, so I've moved some of the 'base'
scientific python packages to be installed from conda.
Ideally, we should basically move everything.

I've also moved everyone to using mambaforge,
mostly because mamba provided a much more useful error
message than conda when the PR ran into conflicting packages.
We should just use mamba eventually to install packages, as it
is faster.

Also fixes #2925

The pyvcf package is uninstalled, as it is incompatible with newer version
of setuptools (jamescasbon/PyVCF#332). I do not
see any imports of it in our python popularity dashboard (https://grafana.datahub.berkeley.edu/d/1EJ3WNi7z/python-popularity-contest-copy?orgId=1&from=now-30d&to=now&viewPanel=8)

Ref #2824

Cartopy and Shapely feel very difficult to install from PyPI,
as they have no binary wheels and require a specific version of
proj and geos from apt. But the R `sf` package also requires
a specific version of proj from apt, and this sort of puts us
in an impossible situation as cartopy 0.20.* requires a newer
version than sf.

So we start using conda-forge to install some of these base
scientific packages instead. This reduces the scope for a lot
of these conflicts, and lets us peacefully use apt just for R.
I'm trying to only have pip packages depend on conda, not
the other way around, so I've moved some of the 'base'
scientific python packages to be installed from conda.
Ideally, we should basically move everything.

Ref berkeley-dsep-infra#2824
cartopy gets it from conda-forge now
@yuvipanda yuvipanda changed the title Try and upgrade cartopy again Get python packages from conda-forge Oct 27, 2021
Gives me a whole lot of bogus conflicts that
should not be conflicts, like

Package typing conflicts for:
bokeh=2.3 -> typing_extensions[version='>=3.7.4'] -> typing[version='>=3.7.4']
spacy=3.1 -> typing_extensions[version='>=3.7.4,<4.0.0.0'] -> typing[version='>=3.7.4']
I don't think this will help
Mamba is faster and provides error messages that are
actually comprehendable on conflicts
These were causing conflicts conda couldn't solve,
and there is no reason to move these right now.
From looking at package-popularity data, I don't see it
be imported: https://grafana.datahub.berkeley.edu/d/1EJ3WNi7z/python-popularity-contest-copy?orgId=1&from=now-30d&to=now&viewPanel=8

It fails to install with setuptools>58 - see
jamescasbon/PyVCF#332.
@yuvipanda yuvipanda changed the title Get python packages from conda-forge Get python packages from conda-forge, use mamba Oct 27, 2021
@yuvipanda yuvipanda merged commit 638b22f into berkeley-dsep-infra:staging Oct 27, 2021
yuvipanda added a commit that referenced this pull request Oct 27, 2021
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.

Request python library linearmodels.iv for class PS 88
1 participant