The setup.py script is used to edit the configuration file and Makefile for users who may not be familiar with JSON or Makefiles. The critical use case here is making it accessible for users to specify where their local installation of Bash and Python 3 are located.
The script must be manually invoked if the system Python install path does not match the one in the Makefile. It would be preferable to fully automate this stage as part of a "build" process. Thinking of tools potentially up to the task which would be ubiquitously adopted by our target systems would be grep and awk.
Using a shell script is insufficiently portable because a user's default shell may not be Bash. Including a special shell script for every type of popular shell also seems like a moving target.
The
setup.py
script is used to edit the configuration file and Makefile for users who may not be familiar with JSON or Makefiles. The critical use case here is making it accessible for users to specify where their local installation of Bash and Python 3 are located.The script must be manually invoked if the system Python install path does not match the one in the Makefile. It would be preferable to fully automate this stage as part of a "build" process. Thinking of tools potentially up to the task which would be ubiquitously adopted by our target systems would be
grep
andawk
.Using a shell script is insufficiently portable because a user's default shell may not be Bash. Including a special shell script for every type of popular shell also seems like a moving target.