Re: [Python-Dev] Should a change in search order of directories in setup.py be backported?

2008-02-03 Thread Martin v. Löwis
> But should this be backported? It will change how extensions are
> compiled if there is more than one version on a machine. Not sure if
> we want people to suddenly have what they link against change in a
> micro release.

I agree with Skip that this is a bug, so please backport it.

Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] A word of warning against using sqlite3 from MacPorts

2008-02-03 Thread Andrew MacIntyre
Brett Cannon wrote:

{...}

> Noticing that sqlite 3.5.5 was recently available I had MacPorts
> update. Unfortunately this didn't fix things. I narrowed things down
> to running test_ctypes before test_sqlite as the trigger. In order to
> debug I wanted to use a version of sqlite that I had compiled.

{...}

> So I suspect that sqlite3 from MacPorts is built in such a way as to
> cause issues. This on Leopard which might also somehow influence
> things.

In a separate context, I've seen a reference to there being build related
issues with sqlite 3.5.5 on several platforms (I don't know which) which
have resulted in 3.5.6 being scheduled for release in fairly short order
(probably in the next few days).

-- 
-
Andrew I MacIntyre "These thoughts are mine alone..."
E-mail: [EMAIL PROTECTED]  (pref) | Snail: PO Box 370
[EMAIL PROTECTED] (alt) |Belconnen ACT 2616
Web:http://www.andymac.org/   |Australia
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Should a change in search order of directories in setup.py be backported?

2008-02-03 Thread Brett Cannon
On Feb 3, 2008 12:08 AM, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
> > But should this be backported? It will change how extensions are
> > compiled if there is more than one version on a machine. Not sure if
> > we want people to suddenly have what they link against change in a
> > micro release.
>
> I agree with Skip that this is a bug, so please backport it.

Done in r60548. I also went back and added a Misc/NEWS entry for the trunk.

-Brett
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


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 PCbuild directory contains several helper bat files. The most
> important files are build_env.bat and rt.bat. Build_env.bat opens a
> command prompt and sets several env vars. 

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
2008 for C++" (or whatever it's called) the executable is vcexpress.exe.
Basically, whatever .exe the Start Menu shortcut for Visual Studio Express
points to, that's your filename. Change it in the build.bat file and Bob's
Your Uncle!

Thanks again to Christian for all the work he's put in to support
VS 2008 (Express).

TJG
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


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

2008-02-03 Thread Steve Holden
Tim Golden wrote:
> 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 PCbuild directory contains several helper bat files. The most
>> important files are build_env.bat and rt.bat. Build_env.bat opens a
>> command prompt and sets several env vars. 
> 
> 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
> 2008 for C++" (or whatever it's called) the executable is vcexpress.exe.
> Basically, whatever .exe the Start Menu shortcut for Visual Studio Express
> points to, that's your filename. Change it in the build.bat file and Bob's
> Your Uncle!
> 
> Thanks again to Christian for all the work he's put in to support
> VS 2008 (Express).
> 
Hear hear. It's good to see that the whole burden no longer falls on Tim 
and Martin.

Does VS2008 (Express) coexist peacefully with VS2005, which I need to 
retain for certain client projects?

regards
  Steve
-- 
Steve Holden+1 571 484 6266   +1 800 494 3119
Holden Web LLC  http://www.holdenweb.com/
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


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

2008-02-03 Thread Christian Heimes
Steve Holden wrote:
> Does VS2008 (Express) coexist peacefully with VS2005, which I need to 
> retain for certain client projects?

I've VS2005 and VS2008 (both professional) on my box. I haven't run into
problems and they are living happily together.

Christian
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


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
>> 2008 for C++" (or whatever it's called) the executable is vcexpress.exe.
>> Basically, whatever .exe the Start Menu shortcut for Visual Studio Express
>> points to, that's your filename. Change it in the build.bat file and Bob's
>> Your Uncle!
> 
> 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 "Release|Win32"
> Microsoft (R) Visual C++ Project Builder - Command Line Version 9.00.21022

It does (under vc\vcpackages). My development laptop's upstairs but I'll
try out the command above when I get a chance later. While you're there,
the HEAD version of Lib\distutils\command\build_ext.py still refers to
pcbuild9 instead of pcbuild which is preventing extensions from finding
python26.dll. It's a trivial fix so you could probably get it in faster
than I can build and submit the patch. (I'll check later on and put a
patch in if you haven't had a chance).

Thanks

TJG
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


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 "Release|Win32"
>> Microsoft (R) Visual C++ Project Builder - Command Line Version 9.00.21022

To confirm: this works under VS 2008 Express. I updated my build.bat
file to read:

set cmd=vcbuild /useenv pcbuild.sln "%conf%|%platf%"

and it worked a charm. Thanks, Christian.

TJG
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


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

2008-02-03 Thread Christian Heimes
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
> 2008 for C++" (or whatever it's called) the executable is vcexpress.exe.
> Basically, whatever .exe the Start Menu shortcut for Visual Studio Express
> points to, that's your filename. Change it in the build.bat file and Bob's
> Your Uncle!

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 "Release|Win32"
Microsoft (R) Visual C++ Project Builder - Command Line Version 9.00.21022

Christian
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] Fix of urgent exception pickling issue in Python 2.5.2, help needed

2008-02-03 Thread Jaroslav Pachola
As you may know, I recently posted a message about the following issue: 
http://bugs.python.org/issue1692335 . The issue has been reviewed by 
Guido van Rossum yesterday and as it seems there are some serious 
concerns about breaking the pickle protocol functionality and that's why 
I please the mailing list subscribers for help. Review of the attached 
patches by someone who has a deep insight into the pickle protocol would 
be really appreciated.

Let me briefly explain the situation: Before version 2.5, it was 
perfectly possible to pickle and unpickle subclasses of Exception class 
with custom initializer parameters. In 2.5 it does not work any more and 
I think the issue is related to new-style class exceptions introduced in 
Python 2.5. The bug tracker contains patch that fixes the issue and adds 
some useful test cases. The patch seems to be relatively clean and 
simple, but still it seems necessary that another experienced developer 
reviews the patch so the issue can be resolved and closed. The issue 
prevents some existing projects to move to Python 2.5, please help.

Regards,

Jaroslav Pachola
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


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

2008-02-03 Thread Martin v. Löwis
> Does VS2008 (Express) coexist peacefully with VS2005, which I need to 
> retain for certain client projects?

Depends on the installation order. For most purposes (executable files,
include files, libraries, etc), they live in different file and registry
spaces, so they coexist fine. The only issue is file name extensions:
what happens if you double-click .sln. VS2008 comes with a version
selector that checks the contents of the file before launching a
specific visual studio, so if you install that second, it will still
open old projects with VS 2005.

VS2005 also shipped with a version selector; I'm unsure whether that
tool would also support future versions (ie. vs2008), so its better
to make sure the 2008 selector gets used.

I don't know whether simultaneous installation of the express and
full versions of VS 2008 is supported (but that was not your
question).

Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


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 "Release|Win32"
>> Microsoft (R) Visual C++ Project Builder - Command Line Version 
>> 9.00.21022
> 
> It does (under vc\vcpackages). My development laptop's upstairs but I'll
> try out the command above when I get a chance later. While you're there,
> the HEAD version of Lib\distutils\command\build_ext.py still refers to
> pcbuild9 instead of pcbuild which is preventing extensions from finding
> python26.dll. It's a trivial fix so you could probably get it in faster
> than I can build and submit the patch. (I'll check later on and put a
> patch in if you haven't had a chance).

OK. I've just picked up the svn update and it works ok. Only
thing is that the /build parameter is now invalid (although
ignored). The default seems to be equivalent to "/build" while
you have to specify "/rebuild" if that's what you want. Works
ok because vcbuild ignores "/build" and moves on.

Thanks for the prompt response.

TJG
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


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

2008-02-03 Thread Brett Cannon
On Feb 2, 2008 7:34 PM, Christian Heimes <[EMAIL PROTECTED]> wrote:
> Brett Cannon wrote:
> > Anyway, to make the tutorial as useful as possible I need to worry
> > about Windows users. But being an OS X/UNIX user, I don't know how to
> > help these people. =) As or right now I am going to point them to the
> > readme.txt file in PCbuild for build instructions. But I don't know if
> > there is any tips or tricks I should be pointing out to them in terms
> > of developing on Python. I mean I assume they can use the build
> > executable from their svn checkout and have it pick up changes they
> > make to code in the checkout, right? I honestly don't know how
> > different it is to develop on Windows than on UNIX.
> >
> > So any info that people can give me to cover would be helpful.
>
> 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.
>
> Windows users need:
>
> Visual Studio Express Edition (VS C++ 2008)
> http://www.microsoft.com/express/
>
> Tortoise SVN (integrates into the explorer)
> http://tortoisesvn.net/
>
> Putty for writable checkouts (I highly recommend to use the agent)
> http://www.chiark.greenend.org.uk/~sgtatham/putty/
>
> Not required but very useful
> 
>
> Notepad++ to edit Python files
> http://notepad-plus.sourceforge.net/
>
> Total Commander (best Norton Commander clone for Windows)
> http://ghisler.com/
>
> SVN command line program
> http://subversion.tigris.org/project_packages.html
>
> Unix for Windows
> http://cygwin.com/
>
>
> The PCbuild directory contains several helper bat files. The most
> important files are build_env.bat and rt.bat. Build_env.bat opens a
> command prompt and sets several env vars. rt.bat is a wrapper for the
> unit test suite. I normally use "rt -q" or "rt -q -v test_egg
> test_spam". build.bat must be run inside build_env command prompt.
> build_pgo won't work with the express edition.
>

PCbuild/readme.txt says that pressing F6 will also build everything
fine. Is that true as well?

And what is the best way to just launch an interpreter? Just
double-click the built executable? I assume sys.path will still be set
up properly to use the checkout.

> The Windows developers should checkout the sources in a directory
> without non ASCII chars and without spaces. I'm using the directory
> c:\dev\python\ as root for development on Windows. Checkout the trunk
> and py3k in the directory as well as the external dependencies. You
> don't need Perl for the ssl package but Express Edition users must
> compile BSDDB manually for Win32 Release|db_static and Win32
> Debug|db_static. build_tkinter.py builds the Tkinter dependencies.
>
> I'm trying to hang out on IRC during PyCon so I might be able to assist
> with Windows questions.
>

Great! I am going to expect people to already know how to use svn aand
have a compiler set up, just not necessarily started a compile yet. So
I suspect most issues will just be best practices stuff.

> It would be really cool if you can recruit some experienced Windows
> developers. :]

That's the point in all of this. =)

-Brett
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


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

2008-02-03 Thread Christian Heimes
Brett Cannon wrote:
> PCbuild/readme.txt says that pressing F6 will also build everything
> fine. Is that true as well?
> 
> And what is the best way to just launch an interpreter? Just
> double-click the built executable? I assume sys.path will still be set
> up properly to use the checkout.

Build solution is F7 now. It's often faster to select the pythoncore
project and select build from the right click menu if the developer only
modifies a core file.

You can set up the python project as startup project. F5 launches the
startup project in a debug environment. Double clicking on the exe
works, too. sys.path is set up properly.

Christian
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


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

2008-02-03 Thread Brett Cannon
On Feb 3, 2008 2:21 PM, Christian Heimes <[EMAIL PROTECTED]> wrote:
> Brett Cannon wrote:
> > PCbuild/readme.txt says that pressing F6 will also build everything
> > fine. Is that true as well?
> >
> > And what is the best way to just launch an interpreter? Just
> > double-click the built executable? I assume sys.path will still be set
> > up properly to use the checkout.
>
> Build solution is F7 now. It's often faster to select the pythoncore
> project and select build from the right click menu if the developer only
> modifies a core file.
>
> You can set up the python project as startup project. F5 launches the
> startup project in a debug environment. Double clicking on the exe
> works, too. sys.path is set up properly.

Great! Just let me know if/when the vcbuild change is made to the
build.bat file and the Windows part of the slides are done.

I will post them online as a PDF for people to look over. I will also
try to make sure no matter their state to have them up before the next
bug day (which is when?).

-Brett
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] Any Emacs tips for core developers?

2008-02-03 Thread Brett Cannon
I noticed on the download page that http://www.python.org/emacs is
listed as the place to get your modes for Python development (which
seemed to lack any mention of Vim and the support in svn; a slight
bias =). Is this true for core development as well?

Basically if someone can tell me the best place to download stuff and
a bullet point or three for core dev new developers who use Emacs will
thank you.

And if you use something other than Vim or TextMate you can make
suggestions as well. But it should be a fairly popular editor for me
to bother to toss a slide into the tutorial.

-Brett
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


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

2008-02-03 Thread Christian Heimes
Brett Cannon wrote:
> Great! Just let me know if/when the vcbuild change is made to the
> build.bat file and the Windows part of the slides are done.

Done ;)
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Any Emacs tips for core developers?

2008-02-03 Thread Guido van Rossum
I believe recent versions of Emacs and Vim have Python support
standard. At least, it's been years since I last had to do anything to
install it.

I've heard that there are two independent Python modes for Emacs --
though they are suppose to be pretty similar. I don't even know how to
tell them apart.

--Guido

On Feb 3, 2008 2:44 PM, Brett Cannon <[EMAIL PROTECTED]> wrote:
> I noticed on the download page that http://www.python.org/emacs is
> listed as the place to get your modes for Python development (which
> seemed to lack any mention of Vim and the support in svn; a slight
> bias =). Is this true for core development as well?
>
> Basically if someone can tell me the best place to download stuff and
> a bullet point or three for core dev new developers who use Emacs will
> thank you.
>
> And if you use something other than Vim or TextMate you can make
> suggestions as well. But it should be a fairly popular editor for me
> to bother to toss a slide into the tutorial.
>
> -Brett
> ___
> Python-Dev mailing list
> Python-Dev@python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: 
> http://mail.python.org/mailman/options/python-dev/guido%40python.org
>



-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Any Emacs tips for core developers?

2008-02-03 Thread Neal Becker
Guido van Rossum wrote:

> I believe recent versions of Emacs and Vim have Python support
> standard. At least, it's been years since I last had to do anything to
> install it.
> 
> I've heard that there are two independent Python modes for Emacs --
> though they are suppose to be pretty similar. I don't even know how to
> tell them apart.
> 
> --Guido
> 
The more functional one is called "python-mode.el", and if it's loaded
you'll have 2 python-related menus, one called "Python" and one
called "IM-Python".  The other is just called 'python.el' and results in
one menu.  It has far fewer features.

___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Any Emacs tips for core developers?

2008-02-03 Thread skip

Brett> I noticed on the download page that http://www.python.org/emacs
Brett> is listed as the place to get your modes for Python development
Brett> (which seemed to lack any mention of Vim and the support in svn;
Brett> a slight bias =). Is this true for core development as well?

Is what true?  That the above URL is the place to get code to support core
development or that the Vim crowd is being dissed?  

Barry and I are the nominal maintainers of the python-mode package:

http://sourceforge.net/projects/python-mode

I am also the guy more-or-less responsible for syncing python-mode with the
version delivered as part of the XEmacs packages (last synced about a week
ago).  The GNU Emacs folks wrote their own Python mode from scratch a couple
years ago.  Both are mentioned here:

http://www.emacswiki.org/cgi-bin/wiki/PythonMode

I have no experience with the GNU Emacs code.

Finally, on a related note, François Pinard sent me a message yesterday
which I have yet to respond to.  He is apparently back in the Pymacs saddle.
I think a Pymacs-based Python mode would be very cool (in part because I am
really not an Emacs Lisp person).

Skip
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com