Skip to content

Commit

Permalink
Add node to deps
Browse files Browse the repository at this point in the history
  • Loading branch information
th0mas committed Sep 1, 2020
1 parent 5bf65a5 commit 82e0fe1
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,19 +156,36 @@ def check_deps():
else:
out("ERROR\n")

out("Checking for node.js...")
if check_software("node --version"):
out("OK\n")
deps["node"] = True
else:
out("ERROR")

return deps

def install_deps(brew, missing):
if not brew:
must_install_brew()


out("Installing Elixir...\n")
run("brew install elixir")
if input("Do you want to install missing dependencies using brew? (y/N)")[0] == "y":
out("Attempting to install...\n")
else:
out("\nPlease ensure dependenices are installed or there could be errors!\n")
return # Implicit return seems nicer here...

if missing["elixir"]:
out("Installing Elixir...\n")
run("brew install elixir")

if missing["psql"]:
out("Installing PostgreSQL...\n")
run("brew install postgres")

out("Installing PostgreSQL...\n")
run("brew install postgres")
if missing["node"]:
out("Installing node...\n")
run("brew install node")

def install_nerves_dependencies():
if input("Do you want to install build dependencies for nerves? (fwup squashfs coreutils xz pkg-config)? (y/N)")[0] == "y":
Expand Down

0 comments on commit 82e0fe1

Please sign in to comment.