Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2008-03-21 Thread Gregory P. Smith
I'm following up on this thread without checking if there were other following negating a need to respond... If so, ignore as needed. +1 from me. Always build on windows into an architecture specific PCBuild/XXX directory. A bonus if the directory name matches the return value of platform.machin

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2008-01-30 Thread Mark Hammond
I'm wondering if anyone has any comment on this issue? Its currently impossible to use distutils as documented to build x64 extensions, either natively or cross-compiled using the trunk and while I'm keen to help fix this, I'd like agreement on the direction. Can I assume silence means general ag

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2008-01-22 Thread Mark Hammond
Hi Martin, Way back on Monday, 21 May 2007, you wrote: > This is an issue to be discussed for Python 2.6. I'm personally > hesitant to have the "official" build infrastructure deviate > from the layout that has been in-use for so many years, as a lot > of things depend on it. > > I don't find

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-30 Thread Martin v. Löwis
> Us trying to lecture MS on software security is pointless. I didn't try to lecture MS. I explained that to Lars Immisch, who essentially said that authenticode is a good thing because it is based on certificates. Regards, Martin ___ Distutils-SIG mail

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-30 Thread Kristján Valur Jónsson
> -Original Message- > From: "Martin v. Löwis" [mailto:[EMAIL PROTECTED] > > > > Yes, I am aware of that. But the signature makes a man-in-the-middle > > attack harder. > > Sure. However, I think that this protection against an unlikely > scenario > cannot outweigh the main problem of code

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-30 Thread Martin v. Löwis
>>> Educated, adult developers with good internet connections may know that, >>> but all users? What about software on a CD or a memory stick? >> >> Also, I believe users *still* get a confirmation window, just the >> message changes from "we don't know who wrote this software" to >> "we know PSF w

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-30 Thread Lars Immisch
Dear Martin, >> Educated, adult developers with good internet connections may know that, >> but all users? What about software on a CD or a memory stick? > > Also, I believe users *still* get a confirmation window, just the > message changes from "we don't know who wrote this software" to > "we k

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-29 Thread Martin v. Löwis
>> Certainly. However, telling them that they have to wait just so that >> Windows finds out what they know already (that this is the MSI file >> from the Python Software Foundation, or from Martin v. Löwis) is >> even more nasty. > > Educated, adult developers with good internet connections may k

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-29 Thread Lars Immisch
Hi, >> One feature that is easily addable and will certainly make installing >> python on vista nicer, is to add authenticode signing to the install. I'm +1 on authenticode. > This I question very much. I experimented with authenticode before 2.4, > and found it an unacceptable experience. When

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-29 Thread Lars Immisch
Hi, >> One feature that is easily addable and will certainly make installing >> python on vista nicer, is to add authenticode signing to the install. I'm +1 on authenticode. > This I question very much. I experimented with authenticode before 2.4, > and found it an unacceptable experience. When

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-29 Thread Martin v. Löwis
> One feature that is easily addable and will certainly make installing > python on vista nicer, is to add authenticode signing to the install. This I question very much. I experimented with authenticode before 2.4, and found it an unacceptable experience. When the MSI file starts running, install

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-29 Thread Kristján Valur Jónsson
> -Original Message- > From: "Martin v. Löwis" [mailto:[EMAIL PROTECTED] > > Just imagine the a school teacher who in good faith wants to > introduce > > his pupils to the wonderful programming language of Python, but > > when he installs it, all kinds of scary looking warnings drive him >

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-29 Thread Nick Coghlan
Martin v. Löwis wrote: >> I have a set of extensions that use SWIG to wrap my own C++ library. >> This library, on a day-to-day basis is built against VS8 since the rest >> of our product suite is. Right now I have no way to work with this code >> using VS8 since the standard distribution is buil

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-28 Thread Martin v. Löwis
>> Is there a shell script to build a final distribution tree? If >> not, is there a simple way to build an MSI similar to the one found >> on the Python.org site for the official releases but using the >> PCBuild8 stuff? > > I believe not. It's actually not that difficult. You just have to run

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-28 Thread Mark Hammond
> From: Jamie Kirkpatrick [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 23 May 2007 5:16 AM > I have a set of extensions that use SWIG to wrap my own C++ library. This library, on a > day-to-day basis is built against VS8 since the rest of our product suite is. Right now > I have no way to work w

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-28 Thread Martin v. Löwis
> Supporting both kinds (country and western) on the same machine might be > helpful > to people for this very reason. A lot of legacy modules are only avaible > in 32 bit mode. But people may want to do contemporary development using the > new 64 bit mode. Of course, people who really want tha

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-28 Thread Martin v. Löwis
> Development tools used on windows already have to cope with this. > Spaces are not going away, so why not bite the bullet and deal > with them? Moving forward sometimes means crossing rivers. But in a safe path, step by step. People continue to report problems with spaces in file names, even th

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-28 Thread Martin v. Löwis
>> It doesn't need to, and reluctance is not wrt. to the proposed new >> layout, but wrt. changing the current one. Tons of infrastructure >> depends on the files having exactly the names that they have now, >> and being located in exactly the locations where they are currently >> located. Any chan

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-26 Thread Kristján Valur Jónsson
> -Original Message- > > I personally think that if hostile users can replace DLLs on your > system, you have bigger problems than SxS installation of > pythhonxy.dll, > but perhaps that's just me. An end user application on an end-user's machine is always voulnerable to reverse engineeri

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-26 Thread Kristján Valur Jónsson
> -Original Message- > From: Alexey Borzenkov [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 23, 2007 20:36 > To: Kristján Valur Jónsson > Cc: Martin v. Löwis; Mark Hammond; distutils-sig@python.org; python- > [EMAIL PROTECTED] > Subject: Re: [Python-Dev] Adventures with x64, VS7 and VS8

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-26 Thread Kristján Valur Jónsson
> -Original Message- > From: "Martin v. Löwis" [mailto:[EMAIL PROTECTED] > > It doesn't need to, and reluctance is not wrt. to the proposed new > layout, but wrt. changing the current one. Tons of infrastructure > depends on the files having exactly the names that they have now, > and bei

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-24 Thread Kristján Valur Jónsson
> -Original Message- > though, not cygwin (a la bsmedberg's new MozillaBuild stuff). I just > wish there were an autoconf alternative that wasn't as painful as > autoconf. I have a few attempts for my purposes that are written in > Python (an obvious bootstrapping problem for building Py

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-23 Thread Trent Mick
> I'm not quite a '-1', but am a little confused about where this would leave > us. To some extent, this would formalize PCBuild8 and VC6 directories. > External tools would then slowly start growing support for these additional > directories and the previous benefits of "PCBuild is the canonical

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-23 Thread Mark Hammond
> Martin v. Löwis wrote: > >> I use this patch in ActivePython to get distutils to find > the correct > >> PCbuild dir (see attached). > > > > Would you like to commit this to 2.6? (or perhaps 2.5 even?) > > Sure, if others think it is a good thing. Will do tomorrow > unless I hear > a -1 before th

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-23 Thread Trent Mick
Martin v. Löwis wrote: >> I use this patch in ActivePython to get distutils to find the correct >> PCbuild dir (see attached). > > Would you like to commit this to 2.6? (or perhaps 2.5 even?) Sure, if others think it is a good thing. Will do tomorrow unless I hear a -1 before then. Trent -- T

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-23 Thread Mark Hammond
> Very well, leaving linux aside, I don't see why this: > /win32mount/trunk/PCbuild/ > /x64mount/trunk/PCbuild/ > > Is any different from > /winmount/trunk/PCBuild/win32 > /winmount/trunk/PCBuild/x64 In the former case, assuming python is running from the 'trunk' directory, all architectures kno

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-23 Thread Martin v. Löwis
> - Run the appropriate environment setup for the correct compiler. E.g., > for the Platform SDK AMD64 compiler and with the current Platform SDK > this is: > >C:\Program Files\Microsoft Platform SDK\SetEnv.Cmd /X64 /RETAIL > > - Run the solution file with "devenv.com" (IIRC, devenv.exe doe

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-23 Thread Martin v. Löwis
> I use this patch in ActivePython to get distutils to find the correct > PCbuild dir (see attached). Would you like to commit this to 2.6? (or perhaps 2.5 even?) Regards, Martin ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-23 Thread Martin v. Löwis
> Very well, leaving linux aside, I don't see why this: > /win32mount/trunk/PCbuild/ > /x64mount/trunk/PCbuild/ > > Is any different from > /winmount/trunk/PCBuild/win32 > /winmount/trunk/PCBuild/x64 > > I don't understand this extraordinary reluctance to add a single extra > directory. > The wi

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-23 Thread Alexey Borzenkov
On 5/23/07, Kristján Valur Jónsson <[EMAIL PROTECTED]> wrote: > > > Install in the ProgramFiles folder. > > Only over my dead body. *This* is silly. > Bill doesn't think so. And he gets to decide. I mean we do want > to play nice, don't we? Nothing installs itself in the root anymore, > not sinc

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-23 Thread Trent Mick
It seems the best thing might be to modify the PCBuild8 build process so the output binaries are in the ../PCBuild' directory - this way distutils and others continue to work fine. Does that sound reasonable? I think Kristjan will have to say a word here: I think he just likes it the way it is

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-23 Thread Trent Mick
[MarkH] >> I'm guessing vsextcomp doesn't use the Visual >> Studio 'ReleaseAMD64' configuration - would it be OK for me to check in >> changes to the PCBuild projects for this configuration? > [Martin v. Löwis] > Please don't. It exclusively relies on vsextcomp, and is only useful > if you have th

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-23 Thread Kristján Valur Jónsson
> -Original Message- > From: "Martin v. Löwis" [mailto:[EMAIL PROTECTED] > > That couldn't work for me. I try avoid building on a network drive, and > with local drives, I just can't have a Windows build and a Linux build > on the same checkout - they live on separate file systems, after a

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-22 Thread Martin v. Löwis
> I have a set of extensions that use SWIG to wrap my own C++ library. > This library, on a day-to-day basis is built against VS8 since the rest > of our product suite is. Right now I have no way to work with this code > using VS8 since the standard distribution is built against VS7 which > uses

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-22 Thread Martin v. Löwis
> Surely there are differences between architectures? PC uses MSI after all. > Why can't linux be under trunk/linux and pc 86 under trunk/pcbuild8/win32PGO > and 64 under trunk/pcbuild8/x64pgo? That couldn't work for me. I try avoid building on a network drive, and with local drives, I just can't

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-22 Thread Martin v. Löwis
> While that is true in theory, I often find it is not the case in practice, > generally due to the optimizer. Depending on what magic the compiler has > done, it can be very difficult to set breakpoints (conditional or > otherwise), inspect variable values, etc. It is useful in some cases, but >

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-22 Thread Martin v. Löwis
> I'd be happy to install Windows and the latest VisualStudio on a 64-bit > VMware image. I just can't be responsible for day-to-day administration > of the buildslave; Windows requires too much attention for me to do > that. Thanks for the offer. Perhaps Kristjan is interested in setting up a bu

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-22 Thread Jamie Kirkpatrick
I recommend that those people install the official binaries. Why do you need to build the binaries from source, if all you want is to build extensions? I've been following this discussion and it seems like an appropriate place to mention such a scenario which I have encountered myself and

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-22 Thread Mark Hammond
> Someone mentioned the idea to have a bat file do it. I like > that idea. There is already a build.bat file which will > build whatever configuration you choose (platform and > configuration). Extending it to subsequently copy the > resulting binaries up one level is easy. Perhaps this is

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-22 Thread Kristján Valur Jónsson
> -Original Message- > > > It seems the > > > best thing might be to modify the PCBuild8 build process so the > output > > > binaries are in the ../PCBuild' directory - this way distutils and > others > > > continue to work fine. Does that sound reasonable? > > > I think Kristjan will ha

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-22 Thread Kristján Valur Jónsson
> -Original Message- > Nobody proposed to ditch cross-compilation. I very much like > cross-compilation, I do all Itanium and AMD64 in cross-compilation. > > I just want the *file structure* of the output to be the very same > for all architectures, meaning that they can't coexist in a si

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-22 Thread M.-A. Lemburg
Hi Mark, >> +1 from me. >> >> I think this is simply a bug introduced with the UCS4 patches in >> Python 2.2. >> >> unicodeobject.h already has this code: >> >> #ifndef PY_UNICODE_TYPE >> >> /* Windows has a usable wchar_t type (unless we're using UCS-4) */ >> # if defined(MS_WIN32) && Py_UNICODE_

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-21 Thread Mark Hammond
> However, I think people ask much too often for a debugging build; > in many cases, they could work happily with a release build that > supports debugging. Depending on the problem you try to solve, you > may or may not need debug information for pythonxy.dll as well, > or just for your extension

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-21 Thread Titus Brown
On Tue, May 22, 2007 at 07:32:42AM +0200, "Martin v. L?wis" wrote: -> > Addressing only the issues of PCBuild8 and 64-bit architectures, I -> > have tried to establish "free" buildbot support for the 64-bit -> > architectures without any real success. -> > -> > Should the PSF be considering paying

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-21 Thread Martin v. Löwis
> Yes, that is correct. I agree it will be rarely used by Python user's, but > believe it is a common scenario for people who maintain extensions or > libraries, particularly those who want debugging builds. Ah, debugging builds. It's true that PCbuild does not support them for AMD64, and it's al

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-21 Thread Mark Hammond
Hi Martin, > > I'm using the full-blown VS.NET 2003, as given to a number > of python-dev > > people by Microsoft a number of years ago. This appears to > come with the > > SDK and a 64bit compiler. > > Not sure what it makes it appear to you that way - it doesn't. VS.NET > 2003 is x86 only Yes

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-21 Thread Mark Hammond
Hi Marc-Andre, > +1 from me. > > If think this is simply a bug introduced with the UCS4 patches in > Python 2.2. > > unicodeobject.h already has this code: > > #ifndef PY_UNICODE_TYPE > > /* Windows has a usable wchar_t type (unless we're using UCS-4) */ > # if defined(MS_WIN32) && Py_UNICODE_SIZE

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-21 Thread Martin v. Löwis
>> I don't find the need to have separate object directories convincing: >> For building the Win32/Win64 binaries, I have separate checkouts >> *anyway*, since all the add-on libraries would have to support >> multi-arch builds, but I think they don't. > > No they don't, but that doesn't mean that

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-21 Thread Martin v. Löwis
> I'm using the full-blown VS.NET 2003, as given to a number of python-dev > people by Microsoft a number of years ago. This appears to come with the > SDK and a 64bit compiler. Not sure what it makes it appear to you that way - it doesn't. VS.NET 2003 is x86 only > I'm guessing vsextcomp doesn'

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-21 Thread Mark Hammond
Hi Kristján, > First of all, I have put some work into pcbuild8 recently and it works > well. It does! There are a few issues though, notably with distutils (and as mentioned before, any other tools what may assume PCBuild - see below) You quoting Martin: > > I don't find the need to have separ

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-21 Thread Kristján Valur Jónsson
First of all, I have put some work into pcbuild8 recently and it works well. I am trying to drum up momentum for work on PCBuild8 next europython. See http://wiki.python.org/moin/EuroPython2007Sprints > -Original Message- > From: [EMAIL PROTECTED] > > I don't find the need to have separ

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-21 Thread Kristján Valur Jónsson
> -Original Message- > This was in C++, but the problem was really WCHAR, as used by much of > the > win32 API. > > > I'd rather make it a platform-specific definition (for > > platform=Windows > > API). Correct me if I'm wrong, but isn't wchar_t also available in VS > > 2003 (and even in

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-21 Thread M.-A. Lemburg
On 2007-05-21 12:30, Kristján Valur Jónsson wrote: >> >> [Py_UNICODE being #defined as "unsigned short" on Windows] >> >> I'd rather make it a platform-specific definition (for platform=Windows >> API). Correct me if I'm wrong, but isn't wchar_t also available in VS >> 2003 (and even in VC6?). And

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-20 Thread Mark Hammond
Hi Martin, > You are likely doing something wrong: > a) I assume it's VS 7.1 (i.e. VS.NET 2003); VS 2002 is not supported >at all > b) you probably didn't install vsextcomp, but you should. >In fact, you don't need all of it, but you do need the cl.exe and >link.exe wrappers it comes w

Re: [Distutils] [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-20 Thread Martin v. Löwis
> * In trying to build x64 from a 32bit VS7 (ie, cross-compiling via the > PCBuild directory), the python.exe project fails with: > > pythoncore fatal error LNK1112: module machine type 'X86' conflicts with > target machine type 'AMD64' > > is this a known issue, or am I doing something wro