AresValley / Artemis

Radio Signals Recognition Manual
https://aresvalley.github.io/Artemis/
GNU General Public License v3.0
367 stars 41 forks source link

raspbian_build.sh #22

Closed WheezyE closed 4 years ago

WheezyE commented 4 years ago

This script will automatically install Artemis' build requirements (pip modules) and then build Artemis. The script accomplishes this by: Detecting which Raspbian operating system is being used (Buster or Stretch), installing PyEnv on the system (if PyEnv isn't already installed), installing a Python v3.7.0 virtual environment inside of PyEnv (so that Artemis' pip modules do not conflict with Raspbian's System Python), installing pip modules (Artemis requirements) within virtual Python 3.7.0 (modules are specific to Buster or Stretch), then building Artemis (using build.sh). If the script is re-run, it will skip over parts it has already installed. Options are included to clean up after the script is run. This script takes 14 hours on a Pi 0W, but much less time on multi-core Pi's.

WheezyE commented 4 years ago

Oh, I also noticed on the main Artemis website, the Raspberry Pi Buster binary download says x86, but I think it should say ARM.

Anyways, 73 and thank you for all the help. Please let me know if you find any errors anywhere or if I can fix anything.

AresValley commented 4 years ago

Cool! Well done! In the end, the detection of the current OS is probably the optimal choice because a 'universal' script generates too many problems. I'll merge your pull request immediately, and I'll add a very brief part on the official documentation, as well. I'll copy your essential points on what raspbian_build.sh can do but, for the primary documentation/troubleshooting, the script itself is the most complete and self-explanatory guide. Thanks also for pointing out the problem with the x86 label. I put the x86 as a reference for a 32bit architecture but not directly related to Intel. ARM label is surely less misleading.