kopia lustrzana https://github.com/jupyterhub/repo2docker
rodzic
88d489de52
commit
3079a04fb8
|
|
@ -101,13 +101,18 @@ class RBuildPack(PythonBuildPack):
|
||||||
if r_version in version_map:
|
if r_version in version_map:
|
||||||
r_version = version_map[r_version]
|
r_version = version_map[r_version]
|
||||||
else:
|
else:
|
||||||
# Instead of appending ".0" to future R versions,
|
r_version_parts = r_version.split(".")
|
||||||
# repo2docker fails earlier with a meaningful message to the user.
|
if len(r_version_parts) == 3:
|
||||||
# If repo2docker doesn't fail here, repo2docker might fail later
|
warnings.warn(
|
||||||
# without a meaningul message to the user.
|
f"Using R full version, {r_version}, provided by user."
|
||||||
raise RuntimeError(
|
)
|
||||||
f"R version {r_version} is not supported. Please open an issue using https://github.com/jupyterhub/repo2docker/issues/new?template=BLANK_ISSUE.",
|
else:
|
||||||
)
|
# repo2docker fails earlier with a meaningful message to the user.
|
||||||
|
# If repo2docker doesn't fail here, repo2docker might fail later
|
||||||
|
# without a meaningul message to the user.
|
||||||
|
raise RuntimeError(
|
||||||
|
f"R version {r_version} is not supported. Please open an issue using https://github.com/jupyterhub/repo2docker/issues/new?template=BLANK_ISSUE.",
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
warnings.warn(
|
warnings.warn(
|
||||||
f"Using R version {r_version} instead of full version, i.e. MAJOR.MINOR.PATCH."
|
f"Using R version {r_version} instead of full version, i.e. MAJOR.MINOR.PATCH."
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue