1

cross-posted from: https://lemmy.ml/post/1160466

I originally posted this over in https://lemmy.ml/c/python before discovering programming.dev.

Some neat tricks for using Makefiles with Python that I hadn't seen before. The one I have seen, having a help target, has been super useful in team environments and for debugging when used with variables.

you are viewing a single comment's thread
view the rest of the comments
[-] clawlor@programming.dev 1 points 1 year ago

Great post! I suspect that PYTHONPATH hack might be useful in reorganizing a particular repo at $JOB that contains a few different deployable packages and a common library.

The thing I like most about using Makefiles in this way is that it can provide a consistent dev experience across many repos in a team setting, if each repo defines a consistent set of make targets: make setup, make test, make build etc. I don't have to care too much if the project is using pip vs. poetry, or pytest vs. unittest.

this post was submitted on 13 Jun 2023
1 points (100.0% liked)

Python

6311 readers
61 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

📅 Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS