nkremerh / sugarscape

Development repository for the Digital Terraria Lab implementation of the Sugarscape agent-based societal simulation.
https://github.com/digital-terraria-lab/sugarscape
MIT License
7 stars 12 forks source link

Setup script is insufficient and requires manual intervention to run correctly on some systems #42

Closed nkremerh closed 8 months ago

nkremerh commented 8 months ago

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.

nkremerh commented 8 months ago

Fixed by 6760561.