Skip to content

Commit

Permalink
clean up the upstream-dev setup script (#8986)
Browse files Browse the repository at this point in the history
* try not to build `numcodecs` in CI [skip-ci] [skip-rtd]

* don't remove `numcodecs` from the upstream-dev environment

* also don't remove `pint`, it's not in the environment at the moment

* [skip-ci][skip-rtd]

* don't build `bottleneck` without build isolation

`bottleneck` uses the release candidate on PyPI to build `numpy>=2`
compatible wheels.

* also build `cftime` without build isolation

(same as `bottleneck`: it builds against `numpy>=2.0.0rc1`)

* remove the build-deps

* [skip-ci][skip-rtd]

* try removing the upstream-dev build of `pyarrow` [skip-ci][skip-rtd]

Supposedly `pyarrow>=16.0` is compatible with `numpy>=2`, but I don't
know whether the version on `conda-forge` is built against the release
candidate of `numpy`.

* Revert "try removing the upstream-dev build of `pyarrow`" [skip-ci][skip-rtd]

This reverts commit 48a656f.
  • Loading branch information
keewis authored Apr 30, 2024
1 parent 7f99f9e commit bfcb0a7
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions ci/install-upstream-wheels.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/env bash

# install cython for building cftime without build isolation
micromamba install "cython>=0.29.20" py-cpuinfo setuptools-scm
# temporarily (?) remove numbagg and numba
micromamba remove -y numba numbagg sparse
# temporarily remove numexpr
Expand All @@ -18,10 +16,9 @@ micromamba remove -y --force \
zarr \
cftime \
packaging \
pint \
bottleneck \
flox \
numcodecs
flox
# pint
# to limit the runtime of Upstream CI
python -m pip install \
-i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
Expand All @@ -42,32 +39,17 @@ python -m pip install \
--pre \
--upgrade \
pyarrow
# without build isolation for packages compiling against numpy
# TODO: remove once there are `numpy>=2.0` builds for these
python -m pip install \
--no-deps \
--upgrade \
--no-build-isolation \
git+https://github.com/Unidata/cftime
python -m pip install \
--no-deps \
--upgrade \
--no-build-isolation \
git+https://github.com/zarr-developers/numcodecs
python -m pip install \
--no-deps \
--upgrade \
--no-build-isolation \
git+https://github.com/pydata/bottleneck
python -m pip install \
--no-deps \
--upgrade \
git+https://github.com/dask/dask \
git+https://github.com/dask/dask-expr \
git+https://github.com/dask/distributed \
git+https://github.com/zarr-developers/zarr \
git+https://github.com/Unidata/cftime \
git+https://github.com/pypa/packaging \
git+https://github.com/hgrecco/pint \
git+https://github.com/pydata/bottleneck \
git+https://github.com/intake/filesystem_spec \
git+https://github.com/SciTools/nc-time-axis \
git+https://github.com/xarray-contrib/flox \
Expand Down

0 comments on commit bfcb0a7

Please sign in to comment.