Better coder setup
This commit is contained in:
parent
3322afbce3
commit
97594f706b
1 changed files with 3 additions and 4 deletions
|
|
@ -69,11 +69,10 @@ def restore_pip():
|
||||||
def configure_python():
|
def configure_python():
|
||||||
backup_pip()
|
backup_pip()
|
||||||
try:
|
try:
|
||||||
run("pip3", "install", "black")
|
run("python3", "-m", "pip", "install", "--user", "pipx")
|
||||||
|
run("python3", "-m", "pipx", "ensurepath")
|
||||||
|
run("/home/coder/.local/bin/pipx", "install", "poetry")
|
||||||
run("sudo", "npm", "install", "-g", "prettier", "pyright")
|
run("sudo", "npm", "install", "-g", "prettier", "pyright")
|
||||||
|
|
||||||
installer = urllib.request.urlopen("https://install.python-poetry.org").read()
|
|
||||||
subprocess.run(["python3", "-"], input=installer, check=True)
|
|
||||||
finally:
|
finally:
|
||||||
restore_pip()
|
restore_pip()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue