Remove use of 'rvm-download' rbenv plugin

This commit is contained in:
Jamie Alessio 2023-02-19 12:39:33 -08:00
parent 5bc56889e9
commit ab6dab3660
4 changed files with 3 additions and 12 deletions

View file

@ -91,7 +91,6 @@ def _install_rbenv(
# Only install ruby-build if the version is specified
if version != C.DEFAULT:
plugins_dir = os.path.join(envdir, 'plugins')
_extract_resource('ruby-download.tar.gz', plugins_dir)
_extract_resource('ruby-build.tar.gz', plugins_dir)
@ -99,11 +98,8 @@ def _install_ruby(
prefix: Prefix,
version: str,
) -> None: # pragma: win32 no cover
try:
helpers.run_setup_cmd(prefix, ('rbenv', 'download', version))
except CalledProcessError: # pragma: no cover (usually find with download)
# Failed to download from mirror for some reason, build it instead
helpers.run_setup_cmd(prefix, ('rbenv', 'install', version))
# build from source using rbenv + ruby-build
helpers.run_setup_cmd(prefix, ('rbenv', 'install', version))
def install_environment(