[issue542314] long file name support broken in windows

2007-09-14 Thread Mark Hammond
Mark Hammond added the comment: I can confirm the code in question was removed and that long filenames are possible in 2.5. Eg: import os p = "?\\" + os.getcwdu() for i in range(10): p = os.path.join(p, 'x' * 100) os.mkdir(p) os.stat(p) print len(p) I don&#

[issue1455] VS2008, quick hack for distutils.msvccompiler

2007-11-18 Thread Mark Hammond
Changes by Mark Hammond: -- nosy: +mhammond __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1455> __ ___ Python-bugs-list mailing list Unsubs

[issue7833] Bdist_wininst installers fail to load extensions built with Issue4120 patch

2011-10-02 Thread Mark Hammond
Mark Hammond added the comment: This is biting people (including me :) so I'm going to try hard to get this fixed. One user on the python-win32 mailing list resorts to rebuilding every 3rd party module he uses with this patch to get things working again (although apps which use only bu

[issue13101] Module Doc viewer closes when browser window closes on Windows 8

2011-10-04 Thread Mark Hammond
Mark Hammond added the comment: For some reason, IE is struggling to even display the page - it just seems to sit there loading the page without displaying anything, but hitting "stop" then "refresh" usually brings it up. But if you kill IE (which best I can tell can

[issue7833] bdist_wininst installers fail to load extensions built with Issue4120 patch

2011-10-06 Thread Mark Hammond
Mark Hammond added the comment: I'm reluctant to commit to adding test infrastructure for the distutils build commands - if I've missed existing infrastructure and adding such tests would actually be relatively simple, please educate me! Or if someone else would like to hel

[issue7833] bdist_wininst installers fail to load extensions built with Issue4120 patch

2011-10-07 Thread Mark Hammond
Mark Hammond added the comment: My apologies Eric - I had completely overlooked those tests. Attaching a new patch with a test. Note the existing test doesn't actually perform a build so the new test also doesn't, but it does check the core logic (ie, that a manifest with only

[issue7833] bdist_wininst installers fail to load extensions built with Issue4120 patch

2011-10-08 Thread Mark Hammond
Mark Hammond added the comment: Thanks for the review. One note: | +def manifest_setup_ldargs | I’d make all new methods private ones (i.e. leading underscore). They aren't strictly private and are designed to be overridden by subclasses (although in practice, subclassing the com

[issue7833] bdist_wininst installers fail to load extensions built with Issue4120 patch

2011-10-13 Thread Mark Hammond
Mark Hammond added the comment: New version of the patch with the small tweaks requested plus a NEWS entry. -- Added file: http://bugs.python.org/file23400/bug-7833-tweaks-plus-news.patch ___ Python tracker <http://bugs.python.org/issue7

[issue4431] Distutils MSVC doesn't create manifest file

2011-10-14 Thread Mark Hammond
Mark Hammond added the comment: My experience is that for VS2008 at least, the /MANIFESTFILE: option seems to be ignored if there is nothing to put in the manifest, and this tends to be true if you use a static CRT instead of the DLL based one (ie, if you use /MT) Issue 7833 has a patch

[issue7833] bdist_wininst installers fail to load extensions built with Issue4120 patch

2011-10-16 Thread Mark Hammond
Mark Hammond added the comment: I pushed the changes to 2.7, 3.2 and 3.3. I'm happy to help with distutils2/packaging but I'll need to do that later once I work out where to start :) Therefore I'm not yet closing this issue. -- ___

[issue4431] Distutils MSVC doesn't create manifest file

2011-10-18 Thread Mark Hammond
Mark Hammond added the comment: I don't think a buildbot will be necessary - like the earlier compilers, they may have basic support but they don't all get buildbot support. The "problem" isn't the lack of ability/will to get things working with VS2010 - it is more

[issue12989] Consistently handle path separator in Py_GetPath on Windows

2011-10-19 Thread Mark Hammond
Mark Hammond added the comment: The first chunk of that patch is for when pythonhome==NULL. There is also a similar block just under it when MS_WINDOWS is not defined. While I don't know in which cases this will be built without that define, it looks as though the *buf++ = DELIM; s

[issue13320] _remove_visual_c_ref in distutils.msvc9compiler causes DLL load fail with embedded Python and multiple CRT versions

2011-11-02 Thread Mark Hammond
Mark Hammond added the comment: I can't explain why this might be happening given the Python dll is still build against vc9 - I'm guessing this can't be reproduced without vs10 in the mix? Re making the feature optional - distutils doesn't really lend itself to customizi

[issue13486] msvc9compiler.py doesn't properly generate manifest files.

2011-11-28 Thread Mark Hammond
Mark Hammond added the comment: A manifest seems to be currently created fine - can you provide steps to reproduce the problem you see? -- ___ Python tracker <http://bugs.python.org/issue13

[issue12200] bdist_wininst install_script not run on uninstall

2011-05-27 Thread Mark Hammond
New submission from Mark Hammond : Probably in all versions, but certainly in 2.7. If you create an installer with bdist_wininst and specify an install_script, that script is not run on uninstallation. See attached test case: setup.py specifies an install_script which just appends argv to

[issue12200] bdist_wininst install_script not run on uninstall

2011-05-27 Thread Mark Hammond
Changes by Mark Hammond : Added file: http://bugs.python.org/file22161/hello.py ___ Python tracker <http://bugs.python.org/issue12200> ___ ___ Python-bugs-list mailin

[issue12200] bdist_wininst install_script not run on uninstall

2011-05-27 Thread Mark Hammond
Changes by Mark Hammond : Added file: http://bugs.python.org/file22162/hello-install.py ___ Python tracker <http://bugs.python.org/issue12200> ___ ___ Python-bugs-list m

[issue12200] bdist_wininst install_script not run on uninstall

2011-05-30 Thread Mark Hammond
Changes by Mark Hammond : -- assignee: tarek -> mhammond keywords: +patch stage: -> patch review versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file22205/issue12200.patch ___ Python tracker

[issue12200] bdist_wininst install_script not run on uninstall

2011-06-01 Thread Mark Hammond
Mark Hammond added the comment: Adding tests would be fairly painful - there is no test infrastructure in place for generating and running installers at all, and worse, the changes are likely to not work correctly when run from a Python "build" tree when the built DLL is not inst

[issue12200] bdist_wininst install_script not run on uninstall

2011-06-01 Thread Mark Hammond
Mark Hammond added the comment: (OTOH though, I could tweak the patch to work in a built tree - it would mean appending "PCBuild" to the dir and retrying the DLL load if the other options fail...) -- ___ Python tracker <http://bu

[issue11629] Reference implementation for PEP 397

2011-07-20 Thread Mark Hammond
Mark Hammond added the comment: The most recent version of PEP397 has removed all mentioned of this reference implementation - the C implementation at https://bitbucket.org/vinay.sajip/pylauncher/ is now the reference. -- resolution: -> out of date status: open ->

[issue7833] Bdist_wininst installers fail to load extensions built with Issue4120 patch

2011-02-26 Thread Mark Hammond
Mark Hammond added the comment: Thinking more about this, I think the approach of this patch is more complex than necessary. I think a better patch would be one which *unconditionally* removes the manifest from extension modules. For maximum flexibility though, we should probably allow a

[issue7833] Bdist_wininst installers fail to load extensions built with Issue4120 patch

2011-02-26 Thread Mark Hammond
Mark Hammond added the comment: I'm wondering if, in practice, extensions which need a manifest can have the manifest being generated completely by the linker - ie, I expect that in most cases where something other than the CRT or MFC is needed in the manifest, the author will wa

[issue11424] logging fileConfig may not correctly detect children

2011-03-06 Thread Mark Hammond
New submission from Mark Hammond : fileConfig has code to detect existing "child" loggers and ensure they are enabled if the parent is configured. However, the approach it takes of sorting the log names can fail in some cases. eg, if 3 loggers exist with names like "bar&qu

[issue11629] Reference implementation for PEP 397

2011-03-22 Thread Mark Hammond
New submission from Mark Hammond : A tracking bug for the reference implementation of PEP397 - A Python launcher for Windows. -- assignee: mhammond components: Documentation files: pep-0397-reference.py messages: 131723 nosy: mhammond priority: normal severity: normal status: open

[issue6498] Py_Main() does not return on SystemExit

2011-03-27 Thread Mark Hammond
Mark Hammond added the comment: Isn't the only problem here that the docs refer to SystemError instead of SystemExit - eg 'raise SystemError("foo")' in an interactive session doesn't terminate the process at all (and I don't believe it should)

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Mark Hammond
Mark Hammond added the comment: Note the quoted documentation in comment 1, the paragraph "Note that if an otherwise unhandled SystemError ..." I don't think that paragraph is correct - SystemError doesn't seem to terminate Py_Main - but if you replace "SystemError

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Mark Hammond
Mark Hammond added the comment: @Rogi - you seem to have a problem with your keyboard - the 'h' and 'e' keys seem to have been swapped. The docs are wrong regardless - I don't think anyone would suggest the behaviour match the docs regarding SystemError -

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Mark Hammond
Mark Hammond added the comment: @Rogi - you might like to re-read my responses a couple more times: * I refer to SystemError as the docs *you quoted* refer to SystemError. Therefore, we should *not* make the implementation match the docs - the docs would be wrong *even if* we change Python

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Mark Hammond
Mark Hammond added the comment: > What teh docs says currently about SystemError calling > exit() is just _WRONG_. Correct - the docs should be fixed - which is what this bug is currently addressing (see the "Components" and "Assigned To" fields) > Also, I am

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Mark Hammond
Mark Hammond added the comment: For completeness, here is a doc patch against 2.6 which corrects the documentation. -- keywords: +patch Added file: http://bugs.python.org/file21447/bug-6498.patch ___ Python tracker <http://bugs.python.

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Mark Hammond
Changes by Mark Hammond : -- keywords: +needs review -patch ___ Python tracker <http://bugs.python.org/issue6498> ___ ___ Python-bugs-list mailing list Unsub

[issue6498] Py_Main() does not return on SystemExit

2011-03-29 Thread Mark Hammond
Mark Hammond added the comment: It will return 1 if you specify a script to run and that has an unhandled exception. -- ___ Python tracker <http://bugs.python.org/issue6

[issue6498] Py_Main() does not return on SystemExit

2011-03-29 Thread Mark Hammond
Mark Hammond added the comment: Good catch - new patch with PyRun_SimpleStringFlags() corrected too. -- keywords: +patch Added file: http://bugs.python.org/file21448/bug-6498.patch ___ Python tracker <http://bugs.python.org/issue6

[issue11717] conflicting definition of ssize_t in pyconfig.h

2011-04-01 Thread Mark Hammond
Mark Hammond added the comment: As Tim Roberts says on the python-win32 list: > Actually, on closer examination, it may be a bit difficult to sell this. The > Microsoft compilers do not define this symbol at all. The SDK defines > SSIZE_T (as a long). Nothing defines ssize_

[issue7833] Bdist_wininst installers fail to load extensions built with Issue4120 patch

2011-02-17 Thread Mark Hammond
Mark Hammond added the comment: I'm failing to get a new pywin32 out of the door due to this issue. I've spent a few hours playing with this and I think the analysis is generally correct here. The key thing is that when using distutils, the extensions end up with a manifest (

[issue1505257] winerror module

2008-06-07 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: pywin32 has a 'winerror' module, which is (basically) a h2py generated module from the same header (although initially generated roughly a decade ago and hand-tweaked since then). Its unfortunate pywin32 still hasn't adopt

[issue2981] confusing action of struct.pack and struct.unpack with fmt 'p'

2008-06-07 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: What should struct.calcsize() do with a 'p' format string? -- nosy: +mhammond ___ Python tracker <[EMAIL PROTECTED]> <http://

[issue3625] test issues on 64bit windows

2008-08-20 Thread Mark Hammond
New submission from Mark Hammond <[EMAIL PROTECTED]>: A number of tests are designed to be skipped on 64bits, but they don't detect 64bit windows builds as 64bits. Also, test_bytes.test_repeat() assumes sys.maxint bytes can't be allocated, which isn't necessarily true on Wi

[issue3617] Add MS EULA to the list of third-party licenses in the Windows installer

2008-08-20 Thread Mark Hammond
Changes by Mark Hammond <[EMAIL PROTECTED]>: -- nosy: +mhammond ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3617> ___ ___ Python

[issue3617] Add MS EULA to the list of third-party licenses in the Windows installer

2008-08-20 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: Obviously IANAL, but my reading of eula.txt included with VS9 seems less restrictive than the 2003 one. It has 2 clauses that seem relevant: * [you must] require distributors and external end users to agree to terms that protect it at

[issue3617] Add MS EULA to the list of third-party licenses in the Windows installer

2008-08-21 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: MAL: > This was already discussed on the PSF members mailing list. Yeah, but not specifically about VS2008 which this bug seemed to be specifically targetting. FWIW, this appears like *less* of a problem for 2.6 than for 2.4 and

[issue3640] test_cpickle crash on AMD64 Windows build

2008-08-21 Thread Mark Hammond
New submission from Mark Hammond <[EMAIL PROTECTED]>: [from python-dev] I've found a recursion related crash in test_cpickle on 64bit builds. Specifically, the 'cPickleDeepRecursive' is causing a stack overflow, and the debugger tells me the actual recursion depth was 6

[issue3640] test_cpickle crash on AMD64 Windows build

2008-08-21 Thread Mark Hammond
Changes by Mark Hammond <[EMAIL PROTECTED]>: -- assignee: -> mhammond keywords: +64bit ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.py

[issue3625] test issues on 64bit windows

2008-08-21 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: I forgot about sys.maxsize - that makes things much cleaner, and even means I don't need to skip the check for insane amounts of memory. If you think this is OK, please also specifically say if you approve for me to check it into tr

[issue3107] test_list uses unreasonable amounts of memory on 64-bit Linux

2008-08-21 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: It looks like I made a dupe at http://bugs.python.org/issue3625, where I reported the same thing on 64bit windows (and 2 other cases that I'd be interested to know if cause problems for you too...) -- nosy

[issue3625] test issues on 64bit windows

2008-08-22 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: Thanks. Checked into the trunk in r65986 -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs

[issue3640] test_cpickle crash on AMD64 Windows build

2008-08-22 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: Sorry for the initial noise - your analysis is correct, mine was flawed :) Simple recursion to a depth of 1000 does work fine on a 64bit build. cpickle.patch does make test_cpickle pass for me. FWIW, find_recursionlimit.py now ca

[issue3566] httplib persistent connections violate MUST in RFC2616 sec 8.1.4.

2008-08-22 Thread Mark Hammond
Changes by Mark Hammond <[EMAIL PROTECTED]>: -- nosy: +mhammond ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3566> ___ ___ Python

[issue3602] Move test.test_suport.catch_warning() to the 'warnings' module

2008-08-27 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: I stumbled across this when mimetools import of test failed due to finding a local test package, not the python test package, so I too will be happy to see this fixed. -- nosy: +mhammond ___

[issue3772] logging module fails with non-ascii data

2008-09-03 Thread Mark Hammond
New submission from Mark Hammond <[EMAIL PROTECTED]>: It appears r66103 introduced a regression - file objects are treated as having an encoding, so non-ascii data fails. It was further complicated by the fact that file objects in 2.6 have an 'encoding' attribute, but by default

[issue3772] logging module fails with non-ascii data

2008-09-03 Thread Mark Hammond
Changes by Mark Hammond <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file11370/logging_encoding.patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3892] bsddb: test01_basic_replication fails on Windows sometimes

2008-09-17 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: I instrumented the code a little. The error is happening because self.client_startupdone never gets set to True. This is supposed to be set in the client_startupdone() method. It expects an event type of db.DB_EVENT_REP_STARTUPDONE,

[issue3892] bsddb: test01_basic_replication fails on Windows sometimes

2008-09-17 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: As discussed with Barry on #python-dev, I committed r66498 which skips the failing assertion on Windows and replaces it with some noise to stderr. Note that only that one assertion fails - the rest of the test passes on Windows. Also,

[issue3892] bsddb: test01_basic_replication fails on Windows sometimes

2008-09-18 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: We are seeing one more error almost identical to the one I fixed (even the method name is the same), but its at line 315 - this is the last error in the Windows buildbot! Please let me know if you would like me to make a similar "f

[issue3892] bsddb: test01_basic_replication fails on Windows sometimes

2008-09-19 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: Actually, I've decided to leave it alone. The buildbots most recent failure was: test test_bsddb3 failed -- Traceback (most recent call last): File "S:\buildbots\python\trunk.nelson-windows\build\lib\bsddb\test\test_repli

[issue2532] file that breaks 2to3 (despite being correct python)

2008-09-29 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: pywin32 has a number of files that break in this way - often files generated by h2py.py -- nosy: +mhammond ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3994] import fixer misses some symbols

2008-09-29 Thread Mark Hammond
New submission from Mark Hammond <[EMAIL PROTECTED]>: The following source file: """ import _winreg _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, "foo") """ results in the following "patch": -import _winreg -_winreg.OpenKey(_winreg.H

[issue4001] 2to3 does relative import for modules not in a package.

2008-09-30 Thread Mark Hammond
New submission from Mark Hammond <[EMAIL PROTECTED]>: Create an empty directory with only 2 files, foo.py and bar.py, both exactly 1 line: foo.py: |from bar import bar bar.py: |bar = "bar" Running 2to3 results in the following patch for foo.py: -from bar import bar +from

[issue4001] 2to3 does relative import for modules not in a package.

2008-10-03 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: I must be going crazy, but I can't see r66707 in the trunk, the py3k branch, or anywhere else in the svn tree. Can you please lend me a clue-stick? ___ Python tracker <[EMAIL PRO

[issue4038] py3k error in distutils file_copy exception handlers

2008-10-03 Thread Mark Hammond
New submission from Mark Hammond <[EMAIL PROTECTED]>: All the exception handlers i dustutils.file_utils._copy_file_contents() are of the form: |except os.error as e: |(errno, errstr) = e This fails to unpack the exception in py3k. I'm attaching a patch that uses exception

[issue4038] py3k error in distutils file_copy exception handlers

2008-10-05 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: r66806 on the py3k branch. -- assignee: -> mhammond resolution: accepted -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://b

[issue4072] build_py support for lib2to3 is stale

2008-10-07 Thread Mark Hammond
New submission from Mark Hammond <[EMAIL PROTECTED]>: The way build_py uses lib2to3 is out of date. Instead of a dummy Options object a dict should be used, and it seems the 'fixers' must explicitly be loaded. I'm afraid I don't have a specific patch as I don't

[issue4073] distutils build_scripts and install_data commands need 2to3 support

2008-10-07 Thread Mark Hammond
New submission from Mark Hammond <[EMAIL PROTECTED]>: The distutils commands 'build_scripts' and 'install_data' both may end up installing .py files. Such .py file should be able tobe run through lib2to3 in the same way supported by build_py. pywin32 has en

[issue4072] build_py support for lib2to3 is stale

2008-10-08 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: r=me - thanks. -- keywords: -needs review resolution: -> accepted ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.py

[issue1284316] Win32: Security problem with default installation directory

2008-10-08 Thread Mark Hammond
Changes by Mark Hammond <[EMAIL PROTECTED]>: -- nosy: +mhammond ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1284316> ___ __

[issue4091] python dll not installed in windows system directory

2008-10-09 Thread Mark Hammond
Changes by Mark Hammond <[EMAIL PROTECTED]>: -- nosy: +mhammond ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4091> ___ ___ Python

[issue7833] Bdist_wininst installers fail to load extensions built with Issue4120 patch

2010-04-26 Thread Mark Hammond
Changes by Mark Hammond : -- nosy: +mhammond ___ Python tracker <http://bugs.python.org/issue7833> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7833] Bdist_wininst installers fail to load extensions built with Issue4120 patch

2010-04-27 Thread Mark Hammond
Mark Hammond added the comment: the pywin32 DLLs have 2 heads. They are Python extension modules as well as regular DLLs. They are built by distutils and therefore have no manifests - I think many packages use distutils to build their extension modules - it is just that they usually don&#

[issue1284316] Win32: Security problem with default installation directory

2010-04-27 Thread Mark Hammond
Mark Hammond added the comment: Another consideration here will be how distutils will work in a python with restricted permissions - the pattern of "just run 'setup.py install'" will not work unless it is done from an elevated command-prompt. As I expect this would f

[issue7594] shlex refactoring

2010-05-05 Thread Mark Hammond
Mark Hammond added the comment: I tried to use this in place of shlex for parsing IMAP responses for the 'imapclient' package. A couple of things struck me. * The class no longer has a next() method but probably should be added for b/w compat. * The class no longer has a 't

[issue1763] Winpath module - easy access to Windows directories like My Documents

2008-01-17 Thread Mark Hammond
Mark Hammond added the comment: I'm not sure why the approach of "load-em-all" is being taken. Interestingly, SHGetFolderPathW is listed as deprecated, so I doubt that list will grow too much, but the implementation as specified prevents the user from using other facilities av

[issue2513] 64bit cross compilation on windows

2008-03-30 Thread Mark Hammond
New submission from Mark Hammond <[EMAIL PROTECTED]>: I've taken the liberty of adding Trent, Christian and Martin to the nosy list as I know they are actively, if reluctantly interested in this. This patch allows the distutils to cross-compile on Windows. It has been tested on x8

[issue2513] 64bit cross compilation on windows

2008-04-01 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: Hi Marc-Andre, The PCBuild/README.txt file has some info about compatibility with VS versions (but probably needs to say more about x64 builds). There is also talk about releasing "Profile Guided Optimization" built bina

[issue2513] 64bit cross compilation on windows

2008-04-02 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: I'd like to keep this issue specifically about cross-compilation in the current tree, and while some of the other ideas may have merit, let's not bog this issue down with them unless they directly impact the patch. Does

[issue1753245] Add RegEnableReflectionKey and RegDisableReflectionKey

2008-04-05 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: Been sitting here for a while without comment, so: Sending_winreg.c Committed revision 62180. -- resolution: -> fixed status: open -> closed _ Tracker <[EMAIL PR

[issue2563] embed manifest in windows extensions

2008-04-06 Thread Mark Hammond
New submission from Mark Hammond <[EMAIL PROTECTED]>: The move to vs2008 has caused .manifest files to be created next to distutils created extensions modules, rather than being embedded as recommended by Microsoft. See http://msdn2.microsoft.com/en-us/library/ms235591(VS.80).aspx The at

[issue2513] 64bit cross compilation on windows

2008-04-06 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: Checked in r62197, including the patch from Thomas. Note I expanded the patch to the distutils doc (noting you need to build Python itself for the target platform before it works) and added a short entry to Misc/NEWS -- reso

[issue1232947] non-admin install may fail (win xp pro)

2008-04-07 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: I can repro this too using python-2.6a2.msi - after selecting "just for me" on XP running as a non-admin user, I see an error message regarding permissions. On vista, I get an elevation prompt (and if I hit "allow", i

[issue2581] Vista UAC/elevation support for bdist_wininst

2008-04-07 Thread Mark Hammond
New submission from Mark Hammond <[EMAIL PROTECTED]>: The attached patch adds basic UAC support to bdist_wininst created installers. A new option '--user-access-control' has been added to bdist_wininst, which is written to the INI file read by the installer. The installer read

[issue2563] embed manifest in windows extensions

2008-04-08 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: Note that we are actually using the linker to *generate* the manifest (something linkers pre VC2005 couldn't do), so if we could tell the linker to skip that manifest generation and embed it directly in the DLL, it would certainl

[issue2601] [regression] reading from a urllib2 file descriptor happens byte-at-a-time

2008-04-29 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: For those trying to follow along at home: best I can tell we have 3 other issues on this: #1092502 and #1389051 are dupes of an initial bug, but the fix for those bugs caused regressions reported in this bug and in #2632. To try and

[issue2601] [regression] reading from a urllib2 file descriptor happens byte-at-a-time

2008-04-29 Thread Mark Hammond
Changes by Mark Hammond <[EMAIL PROTECTED]>: -- status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2601> __ ___ Python-b

[issue2601] [regression] reading from a urllib2 file descriptor happens byte-at-a-time

2008-04-29 Thread Mark Hammond
Changes by Mark Hammond <[EMAIL PROTECTED]>: -- resolution: -> duplicate __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2601> __ ___ Python-b

[issue1092502] Memory leak in socket.py on Mac OS X

2008-04-29 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: FYI, #2632 is tracking a regression caused by this change. -- nosy: +mhammond _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.o

[issue2745] Add support for IsWow64Process

2008-05-02 Thread Mark Hammond
New submission from Mark Hammond <[EMAIL PROTECTED]>: As per a thread on python-dev, I offered to add sys.iswow64process. I'm attaching a patch that does this (including news, docs and tests). I'm adding Martin to the nosy list as he has expressed reservations ("It sound

[issue2581] Vista UAC/elevation support for bdist_wininst

2008-05-02 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: Checked in as r62636 -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs

[issue2745] Add support for IsWow64Process

2008-05-03 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: I'm not sure if that is suggesting MS had no reason to add that API function, or those reasons don't apply to users of Python, but as its clear there is significant resistance I'm rejecting this report. -- res

[issue4073] distutils build_scripts and install_data commands need 2to3 support

2008-10-21 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: > I'm skeptical about adding build_data support, as it's not > obvious what files would need conversion. All .py files should be converted. I can't think why a project would use this 2to3 capability for script

[issue4073] distutils build_scripts and install_data commands need 2to3 support

2008-10-21 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: Thinking more about data_files, I'd agree that blindly converting all .py files and nothing more isn't as useful for install_data as the other commands. It might make more sense to allow data_files to specify a list of patte

[issue4120] Do not embed manifest files in *.pyd when compiling with MSVC

2008-10-23 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: I don't see a problem with this and can see how it would help with private assemblies. -- nosy: +mhammond ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue4015] [patch] make installed scripts executable on windows

2008-10-24 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: I can see how this might be useful, but I agree it should not happen by default, at least until it has been out for a while and feedback is clear that people do want it by default. I'd also like to find a way to pass all args, n

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-01 Thread Mark Hammond
Mark Hammond added the comment: I've no time to dig deeper now as I suspect testing will require removal of the vc9 assembly from the GAC and testing with a local one, but some comments: test.c's error is "can't find the DLL" - this will be as we attempt to load Pyth

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-01 Thread Mark Hammond
Mark Hammond added the comment: I meant to mention: FWIW, *some* py2exe apps work fine with the old scheme - specifically, IIUC, any app will work fine so long as the .pyd files were next to the executable, which is next to the assembly. I understand this is a significant restriction, but its

[issue4804] Python on Windows disables all C runtime library assertions

2009-01-01 Thread Mark Hammond
New submission from Mark Hammond : This block in exceptions.c: #if defined _MSC_VER && _MSC_VER >= 1400 && defined(__STDC_SECURE_LIB__) ... /* turn off assertions in debug mode */ prevCrtReportMode = _CrtSetReportMode(_CRT_ASSERT, 0); #endif Does exactly what the c

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-02 Thread Mark Hammond
Mark Hammond added the comment: I've hacked together something that fixes the problem. I'm working on making it a real patch, but the basis is: * In DllMain (dl_nt.c), we call: case DLL_PROCESS_ATTACH: GetCurrentActCtx(&PyWin_DLLhActivationContext);

[issue4804] Python on Windows disables all C runtime library assertions

2009-01-02 Thread Mark Hammond
Mark Hammond added the comment: It would be interesting to know which tests actually fail. If the tests are explicitly checking a bad fd, then IMO it makes more sense for that test to simply be avoided in debug builds and nothing of value would be left untested. OTOH, I'd also be happy

[issue4804] Python on Windows disables all C runtime library assertions

2009-01-02 Thread Mark Hammond
Mark Hammond added the comment: I guess another option is to expose it via msvcrt and let the test themselves disable it? ___ Python tracker <http://bugs.python.org/issue4

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-02 Thread Mark Hammond
Mark Hammond added the comment: Attaching a patch which works for me against python 2.6. Only ever tested on Vista (ie, where the function pointers etc all load) -- keywords: +needs review, patch Added file: http://bugs.python.org/file12536/bug4566.patch

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-02 Thread Mark Hammond
Changes by Mark Hammond : Removed file: http://bugs.python.org/file12536/bug4566.patch ___ Python tracker <http://bugs.python.org/issue4566> ___ ___ Python-bugs-list m

  1   2   >