A Python script should be written for setup
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
Hey, i'd like to take this up.
According to me, it would be a better option to create this as a package downloadable via pip itself.
What do you think?
@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