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

[Backport release-1.5] [python] update to numba 0.58 #1726

Merged
merged 1 commit into from
Sep 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 7 additions & 15 deletions apis/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,21 +271,13 @@ def run(self):
"anndata < 0.9; python_version<'3.8'",
"anndata; python_version>='3.8'",
"attrs>=22.2",
# Pinning numba & its particular numpy constraints:
# The old pip solver (<=2020) doesn't deal with the transitive
# requirements (scanpy -> numba -> numpy) properly resulting in broken
# installation of incompatible numpy>=1.24. Issue #1051
# These pins can be removed either when there's a new numba release
# with less-particular numpy version constraints, or if we decide we no
# longer need to support the old pip solver (default on ubuntu 20.04).
#
# Also: numba doesn't support Python 3.11 until 0.57.0rc1.
# It' not preferable to pin to an RC dependency, so we only do this
# when we must, which is for 3.11.
"numba==0.56.4; python_version<'3.11'",
"numba==0.57; python_version=='3.11'",
"numpy>=1.18,<1.24; python_version<'3.11'",
"numpy>=1.18,<1.25; python_version=='3.11'",
"numba~=0.58.0; python_version>='3.8'",
# Older numba version needed for Python3.7.
# This older numba version was also incompatble with newer numpy
# versions, and the old pip solver (<=2020) needed us to explicate
# that constraint here (issue #1051).
"numba==0.56.4; python_version<'3.8'",
"numpy>=1.18,<1.24; python_version<'3.8'",
"pandas",
"pyarrow>=9.0.0",
"scanpy>=1.9.2",
Expand Down