Skip to content

Commit

Permalink
Use original deprecation version
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard committed Sep 27, 2023
1 parent 0a2e2d8 commit e39b60c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions conda_build/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,56 +494,56 @@ def build_folder(self):

# back compat for conda-build-all - expects CONDA_* vars to be attributes of the config object
@property
@deprecated("3.28.0", "4.0.0")
@deprecated("3.0.28", "4.0.0")
def CONDA_LUA(self):
return self.variant.get("lua", get_default_variant(self)["lua"])

@CONDA_LUA.setter
@deprecated("3.28.0", "4.0.0")
@deprecated("3.0.28", "4.0.0")
def CONDA_LUA(self, value):
self.variant["lua"] = value

@property
@deprecated("3.28.0", "4.0.0")
@deprecated("3.0.28", "4.0.0")
def CONDA_PY(self):
value = self.variant.get("python", get_default_variant(self)["python"])
return int("".join(value.split(".")))

@CONDA_PY.setter
@deprecated("3.28.0", "4.0.0")
@deprecated("3.0.28", "4.0.0")
def CONDA_PY(self, value):
value = str(value)
self.variant["python"] = ".".join((value[0], value[1:]))

@property
@deprecated("3.28.0", "4.0.0")
@deprecated("3.0.28", "4.0.0")
def CONDA_NPY(self):
value = self.variant.get("numpy", get_default_variant(self)["numpy"])
return int("".join(value.split(".")))

@CONDA_NPY.setter
@deprecated("3.28.0", "4.0.0")
@deprecated("3.0.28", "4.0.0")
def CONDA_NPY(self, value):
value = str(value)
self.variant["numpy"] = ".".join((value[0], value[1:]))

@property
@deprecated("3.28.0", "4.0.0")
@deprecated("3.0.28", "4.0.0")
def CONDA_PERL(self):
return self.variant.get("perl", get_default_variant(self)["perl"])

@CONDA_PERL.setter
@deprecated("3.28.0", "4.0.0")
@deprecated("3.0.28", "4.0.0")
def CONDA_PERL(self, value):
self.variant["perl"] = value

@property
@deprecated("3.28.0", "4.0.0")
@deprecated("3.0.28", "4.0.0")
def CONDA_R(self):
return self.variant.get("r_base", get_default_variant(self)["r_base"])

@CONDA_R.setter
@deprecated("3.28.0", "4.0.0")
@deprecated("3.0.28", "4.0.0")
def CONDA_R(self, value):
self.variant["r_base"] = value

Expand Down

0 comments on commit e39b60c

Please sign in to comment.