Re: [Python-Dev] Build Notes for building trunk with Visual Studio 2008 Express Edition

2007-11-23 Thread Tim Golden
Paul Moore wrote: > On 23/11/2007, Christian Heimes <[EMAIL PROTECTED]> wrote: >> I really like to throw out the old junk to have a clean script. Maybe I >> could leave the old msvccompiler alone and put the new code into >> distutils.msvc9compiler? > > That might work. I'm not sure if throwing th

Re: [Python-Dev] Build Notes for building trunk with Visual Studio 2008 Express Edition

2007-11-23 Thread Tim Golden
Paul Moore wrote: > I have just built the current trunk version of Python on Windows, > using the new PCBuild9 directory, and Visual Studio 2008 Express > Edition. > > Everything went extremely well. I include below my notes on what I > did, for reference. To be honest, there's nothing in here tha

Re: [Python-Dev] PEP: Lazy module imports and post import hook

2008-01-09 Thread Tim Golden
Neil Toronto wrote: > Aside: > > Nick Coghlan wrote: >> My main concern is that the import lock is something Python users >> typically don't have to worry about (aside from the 'don't spawn a >> thread as a side effect of importing' guideline)... > > I've never heard of this and I can't get Goo

Re: [Python-Dev] PEP 370, open questions

2008-01-17 Thread Tim Golden
Christian Heimes wrote: > I'll justify why I view Python as a roaming app. All > company and university Linux boxes I've used in the past had exported > $HOME via NFS. So ~/.local is roamed. I think there is a slight subtlety here: the exported NFS $HOME is more equivalent to the HOMEDRIVE/HOMEPAT

Re: [Python-Dev] PEP 370, open questions

2008-01-17 Thread Tim Golden
Christian Heimes wrote: > Tim Golden wrote: >> The difference therefore is that installing large quantities >> of Python modules into a roaming profile path will involve >> their being copied to-and-fro on logon/logoff which, historically >> at least, was a known cau

Re: [Python-Dev] PEP 370, open questions

2008-01-17 Thread Tim Golden
Paul Moore wrote: > On 17/01/2008, Tim Golden <[EMAIL PROTECTED]> wrote: >>> Is %USERPROFILE% not equal to %HOMEDRIVE%%HOMEPATH%? >> No. On my machine, for example: >> >> HOMEDRIVE=H: >> HOMEPATH=\ >> HOMESHARE=\\vogbs022\it\goldent >> >>

Re: [Python-Dev] PEP 370, open questions

2008-01-17 Thread Tim Golden
Paul Moore wrote: >> The best we can hope for is to point to HOMEDRIVE/PATH as >> Paul suggested (*possibly* rewiring os.path.expanduser to >> try that first, depending on Win2K stuff) > > os.path.expanduser uses HOMEDRIVE/HOMEPATH. It checks for an explicit > HOME (set manually by the user, this

Re: [Python-Dev] ntpath r54364

2008-01-17 Thread Tim Golden
Christian Heimes wrote: > Paul Moore wrote: >> I'd recommend that this change be reverted. To correctly get another >> user's home directory would involve reading (via the registry, or >> maybe some utility function I couldn't find at a quick glance) the >> value of HOMEDRIVE/HOMEPATH which is set

Re: [Python-Dev] Any tips to tell sprinter at PyCon about developing on Windows?

2008-02-03 Thread Tim Golden
Christian Heimes wrote: > I can provide some guidance for the poor Windows souls. :] The VS 2008 > Express Edition makes it easy to compile Python on Windows. There is no > need to install any extra SDK packages, additional compilers or whatsoever. [... snip loads of useful info ...] > The PCbuil

Re: [Python-Dev] Any tips to tell sprinter at PyCon about developing on Windows?

2008-02-03 Thread Tim Golden
Christian Heimes wrote: > Tim Golden wrote: >> Just a note for those using the Express Edition: the build.bat file >> which builds the Python project on the command line assumes that the >> name of the executable is devenv.exe. In fact, for "Visual Studio Express >>

Re: [Python-Dev] Any tips to tell sprinter at PyCon about developing on Windows?

2008-02-03 Thread Tim Golden
Tim Golden wrote: > Christian Heimes wrote: >> Does the VS Express Edition have the "vcbuild" command? The build bots >> are using vcbuild instead of devenv. The professional edition has it. >> >> c:\dev\python\trunk\PCbuild>vcbuild /useenv pcbuild.sln &

Re: [Python-Dev] Any tips to tell sprinter at PyCon about developing on Windows?

2008-02-03 Thread Tim Golden
Tim Golden wrote: > Christian Heimes wrote: >> Does the VS Express Edition have the "vcbuild" command? The build bots >> are using vcbuild instead of devenv. The professional edition has it. >> >> c:\dev\python\trunk\PCbuild>vcbuild /useenv pcbuild.sln &

Re: [Python-Dev] Code freeze?

2008-02-29 Thread Tim Golden
Georg Brandl wrote: > For one thing, releases generate "news", meaning that people will be made > aware that things are moving, that Python is well underway to its next > major versions, and maybe will be more inclined to look at what's new, > or check out a release. I'd like to second that point

Re: [Python-Dev] 3.0 buildbots all red

2008-03-19 Thread Tim Golden
Trent Nelson wrote: >>> Sounds like a challenge if ever I've heard one -- care to wager a beer on >>> it? >>> (Only applies to buildbots that are connected/online.) > >> Make sure you get a screen shot for OnYourDesktop if/when they *do* go >> green! > > Screenshot? I'm going to buy a pack of i

Re: [Python-Dev] PEP 365 (Adding the pkg_resources module)

2008-03-20 Thread Tim Golden
Bob Kline wrote: > Are things really that different in the non-Windows worlds? If I want > python-nose, I run "sudo apt-get install python-nose" (and that means I > can always remove it with "sudo apt-get remove ..."). Seems more > similar than different (ignoring the silliness of Microsoft's

Re: [Python-Dev] fixing tests on windows

2008-04-01 Thread Tim Golden
Steven Bethard wrote: > At the sprints, I ran into a bunch of similar errors running the test > suite on my Windows Vista box, even on tests that were properly > cleaning up after themselves in tearDown(). I even tried putting in > sleeps as long as 1 second, to no avail. The only way to get the te

Re: [Python-Dev] fixing tests on windows

2008-04-01 Thread Tim Golden
Tim Golden wrote: > Steven Bethard wrote: >> At the sprints, I ran into a bunch of similar errors running the test >> suite on my Windows Vista box, even on tests that were properly >> cleaning up after themselves in tearDown(). I even tried putting in >> sleeps as lo

Re: [Python-Dev] fixing tests on windows

2008-04-01 Thread Tim Golden
Giampaolo Rodola' wrote: > > On 1 Apr, 18:27, "Steven Bethard" <[EMAIL PROTECTED]> wrote: >> On Tue, Apr 1, 2008 at 10:20 AM, Facundo Batista >> >> <[EMAIL PROTECTED]> wrote: >>> 2008/4/1, Tim Golden <[EMAIL PROTECTED]>:

Re: [Python-Dev] fixing tests on windows

2008-04-01 Thread Tim Golden
os.rename(filename, filename + ".deleted") >>> filename = filename + ".deleted" >>> os.unlink(filename) >>> except OSError: >>> pass Tim Golden >> Funnily enough, that's exactly what the patch I&#x

Re: [Python-Dev] fixing tests on windows

2008-04-01 Thread Tim Golden
Tim Golden wrote: > Giampaolo Rodola' wrote: >> On 1 Apr, 18:27, "Steven Bethard" <[EMAIL PROTECTED]> wrote: >>> On Tue, Apr 1, 2008 at 10:20 AM, Facundo Batista >>> >>> <[EMAIL PROTECTED]> wrote: >>>> 2008/4/1, Tim

Re: [Python-Dev] fixing tests on windows

2008-04-02 Thread Tim Golden
Gregory P. Smith wrote: > On Tue, Apr 1, 2008 at 9:13 AM, Tim Golden <[EMAIL PROTECTED]> wrote: > >> Tim Golden wrote: >> >> import os, sys >> import win32file >> >> FILENAME = "test" >> >> def rename_and_remove (file

Re: [Python-Dev] fixing tests on windows

2008-04-02 Thread Tim Golden
Nick Coghlan wrote: > Tim Golden wrote: >> I admit: this did occur to me on the train this am. While I >> try to think of a robust way to handle this, other people have >> proposed variations on pid-based / tempdir based filenames instead >> of the same name for each tes

Re: [Python-Dev] fixing tests on windows

2008-04-02 Thread Tim Golden
Tim Golden wrote: > Gregory P. Smith wrote: >> On Tue, Apr 1, 2008 at 9:13 AM, Tim Golden <[EMAIL PROTECTED]> wrote: >> >>> Tim Golden wrote: > >>> >>> import os, sys >>> import win32file >>> >>> FILENAME = "

Re: [Python-Dev] fixing tests on windows

2008-04-03 Thread Tim Golden
[re tests which fail because something's holding a file open with SHARE_DELETE] Well I've tried my best, but I can't come up with a solution which guarantees to overcome this obstacle. I set up a fairly aggressive directory watcher which, when it sees a test file being created, takes a SHARE_DELET

Re: [Python-Dev] fixing tests on windows

2008-04-03 Thread Tim Golden
Terry Reedy wrote: > "Tim Golden" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > | [re tests which fail because something's holding a file > | open with SHARE_DELETE] > > There are a couple of things one can do in a directory'

Re: [Python-Dev] fixing tests on windows

2008-04-04 Thread Tim Golden
Terry Reedy wrote: > If the testdir disallows the search indexer, then there should be no need > to disable Windows Search Service. If privatizing the dir kept other > programs out, then likewise. > > | Or were you suggesting that there is some programmatic way for the > | test suite to create

Re: [Python-Dev] fixing tests on windows

2008-04-04 Thread Tim Golden
Trent Nelson wrote: > 1. For a given python[_d].exe, always use the same test directory, > but hash it against the entire python process path such that it's > unique only for a given python instance. This is to guard against several build runs in parallel, presumably? > 2. Make sure every tim

Re: [Python-Dev] fixing tests on windows

2008-04-09 Thread Tim Golden
Trent Nelson wrote: > >> -Original Message- >> From: Tim Golden [mailto:[EMAIL PROTECTED] >> Sent: 04 April 2008 09:30 >> To: Trent Nelson >> Cc: Python-Dev >> Subject: Re: [Python-Dev] fixing tests on windows > >> Yes. I'm trying desp

[Python-Dev] ctypes assertion failure

2008-07-04 Thread Tim Golden
This problem was raised on the comtypes-users list as it prevents comtypes from being imported on Python 2.6 at the moment. http://bugs.python.org/issue3258 I'll try to find the time to step through to code to work out what's going on, but it's inside the innards of ctypes which I've never looke

Re: [Python-Dev] Add python.exe to PATH environment variable

2008-09-03 Thread Tim Golden
Paul Moore wrote: On 03/09/2008, Thomas Heller <[EMAIL PROTECTED]> wrote: > Perhaps we could have an option to place a "python.bat" > into C:\Windows\ or C:\Windows\System\. Except you still have the "last in wins" issue, and you have to make a decision on whether or not to delete the file.

Re: [Python-Dev] Packaging and binary distributions for Python 3.3

2011-10-10 Thread Tim Golden
On 10/10/2011 12:58, Paul Moore wrote: I've now installed VS Pro 2010. We'll see how that goes. I'd rather avoid downgrading to VS2008 (or having both at once) just for personal builds. But will if I have to. Fairly sure VS2010 won't work, Paul. At least it didn't when I was in the same situat

Re: [Python-Dev] Packaging and binary distributions for Python 3.3

2011-10-13 Thread Tim Golden
On 13/10/2011 19:36, Paul Moore wrote: I don't really understand the benefits of bdist_msi over bdist_wininst Just commenting on this particular issue: in essence, the .MSI format is the Microsoft standard, something which is especially important for corporate rollouts. We're not particularly b

[Python-Dev] Issue 13524: subprocess on Windows

2011-12-04 Thread Tim Golden
http://bugs.python.org/issue13524 Someone raised issue13524 yesterday to illustrate that a subprocess will crash immediately if an environment block is passed which does not contain a valid SystemRoot environment variable. Note that the calling (Python) process is unaffected; this isn't - strict

Re: [Python-Dev] Issue 13524: subprocess on Windows

2011-12-04 Thread Tim Golden
On 04/12/2011 11:42, Nick Coghlan wrote: There's actually two questions to be answered: 1. What should we do in 3.2 and 2.7? 2. Should we do anything more in 3.3? Agreed. 1. Unset 'SystemRoot' in a windows shell 2. Run the test suite and observe the scale of the breakage Sorry; something I

Re: [Python-Dev] Issue 13524: subprocess on Windows

2011-12-04 Thread Tim Golden
On 04/12/2011 12:41, Paul Moore wrote: I'm not 100% clear on the problem here. From how I'm reading things, the problem is that not supplying SystemRoot will cause (some or all) invocations of subprocess.Popen to fail - it's not specific to starting Python. That's basically the situation. My

Re: [Python-Dev] Issue 13524: subprocess on Windows

2011-12-05 Thread Tim Golden
On 05/12/2011 08:10, "Martin v. Löwis" wrote: I agree with Nick that we shouldn't do anything except perhaps for documentation changes. There are many other environment variables whose absence could also cause failures to run the executable, such as PATH, LD_LIBRARY_PATH, etc. Even not passing DI

Re: [Python-Dev] PEP 407: New release cycle and introducing long-term support versions

2012-01-20 Thread Tim Golden
On 20/01/2012 19:14, Georg Brandl wrote: Am 20.01.2012 00:54, schrieb "Martin v. Löwis": I can't help noticing that so far, worries about the workload came mostly from people who don't actually bear that load (this is no accusation!), while those that do are the proponents of the PEP... Ok, so

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread Tim Golden
On 20/03/2012 14:08, VanL wrote: On 3/20/2012 5:48 AM, Mark Hammond wrote: While I'm still unclear on the actual benefits of this, Martin's approach strikes a reasonable compromise so I withdraw my objections. Ok. I was out of town and so could not respond to most of the latest discussion. A

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-21 Thread Tim Golden
On 21/03/2012 23:03, Paul Moore wrote: On 21 March 2012 22:43, Mark Hammond wrote: On 22/03/2012 1:22 AM, Lindberg, Van wrote: Mark, MAL, Martin, Tarek, Could you comment on this? Eric is correct - tools will be broken by this change. However, people seem willing to push forward on this

Re: [Python-Dev] Playing with a new theme for the docs, iteration 2

2012-03-25 Thread Tim Golden
On 25/03/2012 16:26, Ned Batchelder wrote: Georg, thanks so much for taking on this thankless task with grace and skill. It can't be easy dealing with the death by a thousand tweaks Seconded. I'm constantly edified by the way in which people in the community respond to even quite abrupt critici

Re: [Python-Dev] .{git,bzr}ignore in cpython HG repo

2012-04-02 Thread Tim Golden
On 02/04/2012 07:03, "Martin v. Löwis" wrote: Am 02.04.2012 00:31, schrieb Matěj Cepl: On 1.4.2012 23:46, Brian Curtin wrote: For what reason? Are the git or bzr files causing issues on HG? No, but wrong .gitignore causes issues with git repo obtained via hg-fast-import. If it is meant as an

Re: [Python-Dev] Status of packaging in 3.3

2012-06-22 Thread Tim Golden
On 22/06/2012 13:14, Barry Warsaw wrote: > On Jun 22, 2012, at 12:27 PM, Paul Moore wrote: > >> And what I am trying to say is that no matter how much effort gets put >> into trying to make build from source easy, it'll pretty much always >> not be even remotely trivial on Windows. > > It seems t

Re: [Python-Dev] Poking about issue 1677

2012-06-26 Thread Tim Golden
On 26/06/2012 11:51, Devin Jeanpierre wrote: > Hi guys, > > I just wanted to bring some more attention to issue #1677 , because I > feel it's important and misunderstood. See: > http://bugs.python.org/issue1677 > > The issue is that sometimes, if you press ctrl-c on Windows, instead > of raising

Re: [Python-Dev] Poking about issue 1677

2012-06-26 Thread Tim Golden
On 26/06/2012 11:59, Tim Golden wrote: > On 26/06/2012 11:51, Devin Jeanpierre wrote: >> Hi guys, >> >> I just wanted to bring some more attention to issue #1677 , because I >> feel it's important and misunderstood. See: >> http://bugs.python.org/issue1677 >

Re: [Python-Dev] Poking about issue 1677

2012-06-27 Thread Tim Golden
On 26/06/2012 20:02, Terry Reedy wrote: > On 6/26/2012 6:51 AM, Devin Jeanpierre wrote: > >> The issue is that sometimes, if you press ctrl-c on Windows, instead >> of raising a KeyboardInterrupt, Python will exit completely. Because >> of this, any program that relies on ctrl-c/KeyboardInterrupt

Re: [Python-Dev] Poking about issue 1677

2012-06-27 Thread Tim Golden
I can confirm that there is a race condition between the code in myreadline.c and the signal_handler. I have a patch in readiness which basically loops until the signal has been tripped. But what I don't know is: what to do if the signal *still* doesn't trip (after 100 millisecond-retries)? At

[Python-Dev] Bitbucket mirror?

2012-06-28 Thread Tim Golden
Just recently I'm sure I saw a post saying that the main Python repo was mirrored on bitbucket.org for the convenience of developers who could then fork to their own accounts. For the life of me I can't find it now. Can someone confirm and/or nudge me in the right direction, please? TJG

Re: [Python-Dev] Bitbucket mirror?

2012-06-28 Thread Tim Golden
On 28/06/2012 19:10, Brian Curtin wrote: Atlassian setup https://bitbucket.org/python_mirrors to mirror the entire hg.python.org setup. http://blog.python.org/2012/06/mercurial-mirrors-provided-by-atlassian.html Thanks, Brian. That's obviously where I read about it, too. TJG ___

[Python-Dev] Issue 1677 - please advise

2012-06-29 Thread Tim Golden
I've been working on issue 1677 which concerns a race condition in the interactive interpreter on Windows where a Ctrl-C can in some circumstances cause the interpreter to exit as though a Ctrl-Z had been pressed. I've added patches to the issue for 2.7, 3.2 & default. I can't see any realistic wa

Re: [Python-Dev] Do we need __length_hint__ at all? (Was PEP 0424: A method for exposing a length hint)

2012-07-16 Thread Tim Golden
> Speaking of which - I find this bikeshed disgusting. Disgusting? Irritating, perhaps, but why should a PEP -- even one whose purpose is to codify existing practice -- not result in discussions about its subject matter? The final P stands for Proposal, not for Pronouncement. TJG __

Re: [Python-Dev] cpython: issue9584: Add {} list expansion to glob. Original patch by Mathieu Bridon

2012-11-08 Thread Tim Golden
On 08/11/2012 20:43, Georg Brandl wrote: On 11/06/2012 02:56 PM, tim.golden wrote: http://hg.python.org/cpython/rev/dafca4714298 changeset: 80273:dafca4714298 user:Tim Golden date:Tue Nov 06 13:50:42 2012 + summary: issue9584: Add {} list expansion to glob. Original

<    1   2