Merge pull request #1113 from zimbatm/rust-language-fix

rust language: use the new cargo install command
This commit is contained in:
Anthony Sottile 2019-08-11 14:05:11 -07:00 committed by GitHub
commit 9297befe5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,7 +73,7 @@ def install_environment(prefix, version, additional_dependencies):
_add_dependencies(prefix.path('Cargo.toml'), lib_deps) _add_dependencies(prefix.path('Cargo.toml'), lib_deps)
with clean_path_on_failure(directory): with clean_path_on_failure(directory):
packages_to_install = {()} packages_to_install = {('--path', '.')}
for cli_dep in cli_deps: for cli_dep in cli_deps:
cli_dep = cli_dep[len('cli:'):] cli_dep = cli_dep[len('cli:'):]
package, _, version = cli_dep.partition(':') package, _, version = cli_dep.partition(':')