Drasil icon indicating copy to clipboard operation
Drasil copied to clipboard

Improve customizability of generated Makefiles

Open samm82 opened this issue 1 year ago • 2 comments

I noticed that I could not run the generated Makefiles on my system, since I my Python used the python command, but the Makefile used python3. Based on this StackOverflow answer, we should be able to replace python3 with python, but this should be investigated further.

Regardless, this indicates a deeper problem with our Makefiles; we should be defining variables to allow the user to more easily configure them to their specific platform. An example of this would be as such:

PYTHON=python

run: build
	$(PYTHON) Control.py $(RUNARGS)

This should be extended (as applicable) to all languages, frameworks, and anything else that may vary between users. Figuring out the full extent of what this would entail is the first step to solving this issue.

samm82 avatar May 16 '23 21:05 samm82

Having our Makefiles more easily modifiable by the users makes sense to me.

In our last meeting (#3396) @balacij also mentioned the recent trend of using virtual environments for Python. Perhaps we should make that enhancement a future issue?

smiths avatar May 17 '23 19:05 smiths

I knew there was something about Python and Makefiles that I was forgetting - thanks!

samm82 avatar May 17 '23 20:05 samm82