Skip to content

Commit

Permalink
Update default numpy variant
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard committed Jan 8, 2024
1 parent e05416e commit cd37044
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions conda_build/variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,24 @@

DEFAULT_VARIANTS = {
"python": f"{sys.version_info.major}.{sys.version_info.minor}",
"numpy": "1.22",
"numpy": {
# (python): numpy_version, # range of versions built for given python
(3, 8): "1.22", # 1.19-1.24
(3, 9): "1.22", # 1.19-1.26
(3, 10): "1.22", # 1.21-1.26
(3, 11): "1.23", # 1.23-1.26
(3, 12): "1.26", # 1.26-
}.get(sys.version_info[:2], "1.26"),
# this one actually needs to be pretty specific. The reason is that cpan skeleton uses the
# version to say what's in their standard library.
"perl": "5.26.2",
"lua": "5",
"r_base": "3.4" if on_win else "3.5",
"cpu_optimization_target": "nocona",
"pin_run_as_build": OrderedDict(python=OrderedDict(min_pin="x.x", max_pin="x.x")),
"pin_run_as_build": {
"python": {"min_pin": "x.x", "max_pin": "x.x"},
"r-base": {"min_pin": "x.x", "max_pin": "x.x"},
},
"ignore_version": [],
"ignore_build_only_deps": ["python", "numpy"],
"extend_keys": [
Expand All @@ -38,11 +48,6 @@
"cran_mirror": "https://cran.r-project.org",
}

# set this outside the initialization because of the dash in the key
DEFAULT_VARIANTS["pin_run_as_build"]["r-base"] = OrderedDict(
min_pin="x.x", max_pin="x.x"
)

# map python version to default compiler on windows, to match upstream python
# This mapping only sets the "native" compiler, and can be overridden by specifying a compiler
# in the conda-build variant configuration
Expand Down

0 comments on commit cd37044

Please sign in to comment.