Re: Using Makefiles in Python projects

2019-11-12 Thread Marko Rauhamaa
Rhodri James : > On 11/11/2019 19:05, Bill Deegan wrote: >> You could use SCons (native python... ) > > I could. But I'd have to learn how to first, and particularly for > complex cross-platform working that involves learning a lot of stuff I > already know how to do in Make. The time investment

Re: Using Makefiles in Python projects

2019-11-12 Thread Rhodri James
On 11/11/2019 19:05, Bill Deegan wrote: You could use SCons (native python... ) I could. But I'd have to learn how to first, and particularly for complex cross-platform working that involves learning a lot of stuff I already know how to do in Make. The time investment has never seemed that

Re: Using Makefiles in Python projects

2019-11-11 Thread Bill Deegan
You could use SCons (native python... ) On Mon, Nov 11, 2019 at 2:04 PM Grant Edwards wrote: > On 2019-11-11, Rhodri James wrote: > >> I'm sure it's possible to write Makefiles that work with both GNU make > >> and NMake, but I imagine it's a rather limiting and thankless > enterprise. > >> > >

Re: Using Makefiles in Python projects

2019-11-11 Thread Grant Edwards
On 2019-11-11, Rhodri James wrote: >> I'm sure it's possible to write Makefiles that work with both GNU make >> and NMake, but I imagine it's a rather limiting and thankless enterprise. >> >> Is that something you actually do? (Maybe it's great, I really wouldn't >> know. Do tell!) > > Trying t

Re: Using Makefiles in Python projects

2019-11-11 Thread Rhodri James
On 11/11/2019 17:55, Thomas Jollans wrote: I'm sure it's possible to write Makefiles that work with both GNU make and NMake, but I imagine it's a rather limiting and thankless enterprise. Is that something you actually do? (Maybe it's great, I really wouldn't know. Do tell!) Trying to work c

Re: Using Makefiles in Python projects

2019-11-11 Thread Thomas Jollans
On 11/11/2019 14:23, Rhodri James wrote: On 09/11/2019 23:50, Thomas Jollans wrote: On 09/11/2019 21:30, Chris Angelico wrote: On Sun, Nov 10, 2019 at 2:10 AM Thomas Jollans wrote: On 07/11/2019 20:20, Vitaly Potyarkin wrote: What do you think of using Makefiles for automating common chores

Re: Using Makefiles in Python projects

2019-11-11 Thread Rhodri James
On 09/11/2019 23:50, Thomas Jollans wrote: On 09/11/2019 21:30, Chris Angelico wrote: On Sun, Nov 10, 2019 at 2:10 AM Thomas Jollans wrote: On 07/11/2019 20:20, Vitaly Potyarkin wrote: What do you think of using Makefiles for automating common chores in Python projects? Like linting, type che

Re: Using Makefiles in Python projects

2019-11-10 Thread Michael Torrie
On 11/9/19 5:09 PM, Skip Montanaro wrote: > I thought recent versions of Win10 had a full Ubuntu subsystem. Before > that, doesn't something like Cygwin still exist/work? Sure you can install Ubuntu into the WSL2 system, but it's not like you can use that to script things back into Windows land. T

Re: Using Makefiles in Python projects

2019-11-10 Thread Barry Scott
> On 10 Nov 2019, at 00:09, Skip Montanaro wrote: > > (Sorry, not 100% sure of the credit for this quote, Vitaly, perhaps?) > If your software runs on Windows, of you think it might run on Windows in the future, maybe consider writing simple Python scripts for platform-independ

Re: Using Makefiles in Python projects

2019-11-09 Thread Pankaj Jangid
Chris Angelico writes: > On Sun, Nov 10, 2019 at 2:10 AM Thomas Jollans wrote: >> On 07/11/2019 20:20, Vitaly Potyarkin wrote: >> > What do you think of using Makefiles for automating common chores in >> > Python projects? Like linting, type checking and testing? >> > >> > I've come up with a reu

Re: Using Makefiles in Python projects

2019-11-09 Thread Chris Angelico
On Sun, Nov 10, 2019 at 11:09 AM Skip Montanaro wrote: > Thomas: > > > That's why I say "a bit of a hassle". You can get a MSYS set up (whether > > from Git for Windows or otherwise). You can get it to play nice with the > > right Python installation and the Python scripts you presumably want to >

Re: Using Makefiles in Python projects

2019-11-09 Thread Skip Montanaro
(Sorry, not 100% sure of the credit for this quote, Vitaly, perhaps?) > >> If your software runs on Windows, of you think it might run on Windows > >> in the future, maybe consider writing simple Python scripts for > >> platform-independent tasks rather than makefiles and shell scripts. Maybe try

Re: Using Makefiles in Python projects

2019-11-09 Thread Thomas Jollans
On 09/11/2019 21:30, Chris Angelico wrote: On Sun, Nov 10, 2019 at 2:10 AM Thomas Jollans wrote: On 07/11/2019 20:20, Vitaly Potyarkin wrote: What do you think of using Makefiles for automating common chores in Python projects? Like linting, type checking and testing? I've come up with a reus

Re: Using Makefiles in Python projects

2019-11-09 Thread Chris Angelico
On Sun, Nov 10, 2019 at 2:10 AM Thomas Jollans wrote: > > On 07/11/2019 20:20, Vitaly Potyarkin wrote: > > What do you think of using Makefiles for automating common chores in > > Python projects? Like linting, type checking and testing? > > > > I've come up with a reusable Makefile for automating

Re: Using Makefiles in Python projects

2019-11-09 Thread Thomas Jollans
On 07/11/2019 20:20, Vitaly Potyarkin wrote: What do you think of using Makefiles for automating common chores in Python projects? Like linting, type checking and testing? I've come up with a reusable Makefile for automating virtual environment management in Python projects. I think it can be us

Re: Using Makefiles in Python projects

2019-11-08 Thread Chris Angelico
On Sat, Nov 9, 2019 at 3:31 AM Marko Rauhamaa wrote: > > Skip Montanaro : > > > On Thu, Nov 7, 2019 at 1:24 PM Vitaly Potyarkin wrote: > >> > >> What do you think of using Makefiles for automating common chores in > >> Python projects? Like linting, type checking and testing? > > > > Kinda unsure

Re: Using Makefiles in Python projects

2019-11-08 Thread Marko Rauhamaa
Skip Montanaro : > On Thu, Nov 7, 2019 at 1:24 PM Vitaly Potyarkin wrote: >> >> What do you think of using Makefiles for automating common chores in >> Python projects? Like linting, type checking and testing? > > Kinda unsure why this needs to be asked (says the guy who's used Make > longer than

Re: Using Makefiles in Python projects

2019-11-07 Thread Cameron Simpson
On 08Nov2019 10:30, David wrote: On Fri, 8 Nov 2019 at 09:43, Cameron Simpson wrote: [...] _help: @echo '_build: make $(py_static_bundle)' @echo '_deploy_tip: formally deploy the current tip to the dev host dev tree:' @echo '_sync_dev: rsync the curren

Re: Using Makefiles in Python projects

2019-11-07 Thread David
On Fri, 8 Nov 2019 at 09:43, Cameron Simpson wrote: [...] > _help: > @echo '_build: make $(py_static_bundle)' > @echo '_deploy_tip: formally deploy the current tip to the dev > host dev tree:' > @echo '_sync_dev: rsync the current working files into the d

Re: Using Makefiles in Python projects

2019-11-07 Thread Cameron Simpson
On 07Nov2019 22:20, Vitaly Potyarkin wrote: What do you think of using Makefiles for automating common chores in Python projects? Like linting, type checking and testing? I do use one for some things. (Not linting, which I'll describe lower down.) I do like to use it for what make's strengt

Re: Using Makefiles in Python projects

2019-11-07 Thread Grant Edwards
On 2019-11-07, Skip Montanaro wrote: > In short, if you have to type a command more than once, you need a > Makefile. It will save you time and serve as documentation to > yourself and others about how the various pieces of your project fit > together. Definitely. Some of the projects I work on

Re: Using Makefiles in Python projects

2019-11-07 Thread Skip Montanaro
On Thu, Nov 7, 2019 at 1:24 PM Vitaly Potyarkin wrote: > > What do you think of using Makefiles for automating common chores in > Python projects? Like linting, type checking and testing? Kinda unsure why this needs to be asked (says the guy who's used Make longer than Python and nearly as long a

Using Makefiles in Python projects

2019-11-07 Thread Vitaly Potyarkin
What do you think of using Makefiles for automating common chores in Python projects? Like linting, type checking and testing? I've come up with a reusable Makefile for automating virtual environment management in Python projects. I think it can be useful for simplifying the onboarding of new deve