Re: Using Python to automate builds

2009-08-09 Thread Tim Roberts
Kosta wrote: > > >What I would like to do, is to open a cmd window, and start a Python >script. This script would then (based upon input arguments), build >different flavors of the driver (fre, chk, x86, x64) and do some post >processing (create cat files, sign, etc.). > >I was hoping to take adv

Re: Using Python to automate builds

2009-08-06 Thread Gabriel Genellina
En Thu, 06 Aug 2009 14:27:56 -0300, Kosta escribió: On Aug 6, 3:57 am, David Cournapeau wrote: On Thu, Aug 6, 2009 at 12:39 AM, Kosta wrote: > Setenv.bat sets up the path and other environment variables build.exe > needs to compile and link (and even binplace) its utilities.  So > building i

Re: Using Python to automate builds

2009-08-06 Thread Kosta
On Aug 6, 11:58 am, Piet van Oostrum wrote: > > Kosta (K) wrote: > >K> My interpretation of the above (and your email) is that using Popen > >K> allows one to pass the Python environment to a child processs (in my > >K> case, setenv.bat).   I need the reverse, to propagate from the child > >K

Re: Using Python to automate builds

2009-08-06 Thread Aahz
In article , Hendrik van Rooyen wrote: > >Bit slow - but hey, nobody's perfect. YM "pobody's nerfect" HTH HAND -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ "...string iteration isn't about treating strings as sequences of strings, it's about treating string

Re: Using Python to automate builds

2009-08-06 Thread Piet van Oostrum
> Kosta (K) wrote: >K> My interpretation of the above (and your email) is that using Popen >K> allows one to pass the Python environment to a child processs (in my >K> case, setenv.bat). I need the reverse, to propagate from the child >K> to the parent. I don't think there is any modern OS

Re: Using Python to automate builds

2009-08-06 Thread Kosta
On Aug 6, 3:57 am, David Cournapeau wrote: > On Thu, Aug 6, 2009 at 12:39 AM, Kosta wrote: > > > Setenv.bat sets up the path and other environment variables build.exe > > needs to compile and link (and even binplace) its utilities.  So > > building itself is not the issue.  The problem is that if

Re: Using Python to automate builds

2009-08-06 Thread David Cournapeau
On Thu, Aug 6, 2009 at 12:39 AM, Kosta wrote: > > Setenv.bat sets up the path and other environment variables build.exe > needs to compile and link (and even binplace) its utilities.  So > building itself is not the issue.  The problem is that if I call > setenv.bat from Python and then build.exe,

Re: Using Python to automate builds

2009-08-05 Thread Tim Arnold
"Kosta" wrote in message news:84d9ae10-3aee-40a8-97ac-05799da0d...@f18g2000prf.googlegroups.com... >I am a Python newbie, tasked with automating (researching) building > Windows drivers using the WDK build environment. I've been looking > into Python for this (instead of writing a bunch of batc

Re: Using Python to automate builds

2009-08-05 Thread Kosta
On Aug 5, 7:29 am, Hendrik van Rooyen wrote: > On Wednesday 05 August 2009 14:08:18 David Cournapeau wrote: > > > On Wed, Aug 5, 2009 at 4:56 PM, Hendrik van > > > Rooyen wrote: > > > On Tuesday 04 August 2009 21:13:10 Kosta wrote: > > >> I am a Python newbie, tasked with automating (researching)

Re: Using Python to automate builds

2009-08-05 Thread Hendrik van Rooyen
On Wednesday 05 August 2009 14:08:18 David Cournapeau wrote: > On Wed, Aug 5, 2009 at 4:56 PM, Hendrik van > > Rooyen wrote: > > On Tuesday 04 August 2009 21:13:10 Kosta wrote: > >> I am a Python newbie, tasked with automating (researching) building > >> Windows drivers using the WDK build environm

Re: Using Python to automate builds

2009-08-05 Thread David Cournapeau
On Wed, Aug 5, 2009 at 4:56 PM, Hendrik van Rooyen wrote: > On Tuesday 04 August 2009 21:13:10 Kosta wrote: >> I am a Python newbie, tasked with automating (researching) building >> Windows drivers using the WDK build environment.  I've been looking >> into Python for this (instead of writing a bun

Re: Using Python to automate builds

2009-08-05 Thread Marcus Wanner
On 8/4/2009 5:52 PM, Philip Semanchuk wrote: On Aug 4, 2009, at 5:40 PM, Kosta wrote: On Aug 4, 2:34 pm, Dave Angel wrote: + I have released pyKook 0.0.2. +http://pypi.python.org/pypi/Kook/0.0.2 +http://www.kuwata-lab.com/kook/ +http://www.kuwata-lab.com/kook/pykook-users-guide.html Other

Re: Using Python to automate builds

2009-08-05 Thread Hendrik van Rooyen
On Tuesday 04 August 2009 21:13:10 Kosta wrote: > I am a Python newbie, tasked with automating (researching) building > Windows drivers using the WDK build environment. I've been looking > into Python for this (instead of writing a bunch of batch files). > Why do you not use make and a makefile -

Re: Using Python to automate builds

2009-08-04 Thread Philip Semanchuk
On Aug 4, 2009, at 5:40 PM, Kosta wrote: On Aug 4, 2:34 pm, Dave Angel wrote: + I have released pyKook 0.0.2. +http://pypi.python.org/pypi/Kook/0.0.2 +http://www.kuwata-lab.com/kook/ +http://www.kuwata-lab.com/kook/pykook-users-guide.html Other possibilities: + http://pypi.python.org/pypi/

Re: Using Python to automate builds

2009-08-04 Thread Kosta
On Aug 4, 2:34 pm, Dave Angel wrote: > Kosta wrote: > > I am a Python newbie, tasked with automating (researching) building > > Windows drivers using the WDK build environment.  I've been looking > > into Python for this (instead of writing a bunch of batch files). > > > What I would like to do, i

Re: Using Python to automate builds

2009-08-04 Thread Dave Angel
Kosta wrote: I am a Python newbie, tasked with automating (researching) building Windows drivers using the WDK build environment. I've been looking into Python for this (instead of writing a bunch of batch files). What I would like to do, is to open a cmd window, and start a Python script. Thi

Using Python to automate builds

2009-08-04 Thread Kosta
I am a Python newbie, tasked with automating (researching) building Windows drivers using the WDK build environment. I've been looking into Python for this (instead of writing a bunch of batch files). What I would like to do, is to open a cmd window, and start a Python script. This script would