File-Server icon indicating copy to clipboard operation
File-Server copied to clipboard

A Python script should be written for setup

Open nicole-mcg opened this issue 7 years ago • 3 comments

It should move the existing setup.bat and setup.sh functionality to a python script and should also add new functionality:

  • ~~Opening a browser page to the Python install link in the README (hard-coded)~~ Clearly I didn't think this through
    • If the user isn't using windows, it should bring them to the proper OS install page for the version in the README
  • Opening a browser page to the Node.js install link in the README
    • Again, if the user isn't using windows, it should open the currect OS install page

A browser can be opened in Python using

import webbrowser
webbrowser.open('http://127.0.0.1:8080', new=2) #new=2 indicates it should open in a new tab if possible

nicole-mcg avatar Apr 09 '18 19:04 nicole-mcg

Hey, i'd like to take this up.

parth-verma avatar Apr 21 '18 17:04 parth-verma

According to me, it would be a better option to create this as a package downloadable via pip itself.

What do you think?

parth-verma avatar Apr 21 '18 17:04 parth-verma

@party98 Hey, I actually created a script that fulfills my requirement. It doesn't work for Linux ATM. If this was replaced by downloading via pip, would it be able to download and install Java, and Node.js silently still?

Check run.bat which runs scripts/src/setup.ps1 which installs Python if it isn't currently installed. This then runs scripts/src/setup.py which installs Java and node if not installed and finally installs pip requirements and node modules

nicole-mcg avatar Apr 21 '18 22:04 nicole-mcg