Show More
@@ -65,6 +65,18 b' pyenv global ${PYENV2_VERSIONS} ${PYENV3' | |||||
65 | '''.lstrip().replace('\r\n', '\n') |
|
65 | '''.lstrip().replace('\r\n', '\n') | |
66 |
|
66 | |||
67 |
|
67 | |||
|
68 | INSTALL_RUST = r''' | |||
|
69 | RUSTUP_INIT_SHA256=a46fe67199b7bcbbde2dcbc23ae08db6f29883e260e23899a88b9073effc9076 | |||
|
70 | wget -O rustup-init --progress dot:mega https://static.rust-lang.org/rustup/archive/1.18.3/x86_64-unknown-linux-gnu/rustup-init | |||
|
71 | echo "${RUSTUP_INIT_SHA256} rustup-init" | sha256sum --check - | |||
|
72 | ||||
|
73 | chmod +x rustup-init | |||
|
74 | sudo -H -u hg -g hg ./rustup-init -y | |||
|
75 | sudo -H -u hg -g hg /home/hg/.cargo/bin/rustup install 1.31.1 1.34.2 | |||
|
76 | sudo -H -u hg -g hg /home/hg/.cargo/bin/rustup component add clippy | |||
|
77 | ''' | |||
|
78 | ||||
|
79 | ||||
68 | BOOTSTRAP_VIRTUALENV = r''' |
|
80 | BOOTSTRAP_VIRTUALENV = r''' | |
69 | /usr/bin/virtualenv /hgdev/venv-bootstrap |
|
81 | /usr/bin/virtualenv /hgdev/venv-bootstrap | |
70 |
|
82 | |||
@@ -286,6 +298,8 b' sudo mkdir /hgdev' | |||||
286 | # Will be normalized to hg:hg later. |
|
298 | # Will be normalized to hg:hg later. | |
287 | sudo chown `whoami` /hgdev |
|
299 | sudo chown `whoami` /hgdev | |
288 |
|
300 | |||
|
301 | {install_rust} | |||
|
302 | ||||
289 | cp requirements-py2.txt /hgdev/requirements-py2.txt |
|
303 | cp requirements-py2.txt /hgdev/requirements-py2.txt | |
290 | cp requirements-py3.txt /hgdev/requirements-py3.txt |
|
304 | cp requirements-py3.txt /hgdev/requirements-py3.txt | |
291 |
|
305 | |||
@@ -309,6 +323,7 b' EOF' | |||||
309 |
|
323 | |||
310 | sudo chown -R hg:hg /hgdev |
|
324 | sudo chown -R hg:hg /hgdev | |
311 | '''.lstrip().format( |
|
325 | '''.lstrip().format( | |
|
326 | install_rust=INSTALL_RUST, | |||
312 | install_pythons=INSTALL_PYTHONS, |
|
327 | install_pythons=INSTALL_PYTHONS, | |
313 | bootstrap_virtualenv=BOOTSTRAP_VIRTUALENV |
|
328 | bootstrap_virtualenv=BOOTSTRAP_VIRTUALENV | |
314 | ).replace('\r\n', '\n') |
|
329 | ).replace('\r\n', '\n') |
General Comments 0
You need to be logged in to leave comments.
Login now