Derpseh / Spyglass

Nationstates Sheet-generator for easily finding approximate update times
GNU General Public License v3.0
11 stars 10 forks source link

Fix build.sh behavior on different distributions #15

Closed khronion closed 2 years ago

khronion commented 2 years ago

Distro-shipped python is a mess. We can't be sure if a user's Python has pip or venv installed, and the specifics vary from distro to distro.

We need to do some research and come up with a script that can at least handle the common scenarios (e.g. Ubuntu-based distros) and then clearly document what distros the script should work on - and which ones it won't.

khronion commented 2 years ago

Based on initial user polling, it seems like most Linux users are on Ubuntu. I think we can come up with a script that reliably gets python set up with venv+pip and then runs the build.

We can also provide links to documentation on how to install those two for non-Ubuntu users.

khronion commented 2 years ago

725ff2bdd22d0dee0045c1054e19f34c114eade7 provides this functionality for Ubuntu users. Unfortunately, installing python3-pip and python3-venv also pulls in build-essential, so this is a pretty hefty install.