Re: progress: compiling python2.5 under msys (specifically but not exclusively under wine) with msvcr80

2009-01-25 Thread Luke Kenneth Casson Leighton
 Have you made some benchmarks like pystone?

 Cheers,
 Cesare

Cesare, hi, thanks for responding: unfortunately, there's absolutely
no point in making any benchmark figures under an emulated environment
which does things like take 2 billion instruction cycles to start up a
program named c:/msys/bin/sh.exe, due to it inexplicably loading 200
GUI-only truetype fonts.

and to do benchmarks on say windows would require that i install ...
windows!  so if somebody else would like to make some benchmarks, and
publish them, they are most welcome to do so.

l.
--
http://mail.python.org/mailman/listinfo/python-list


Re: progress: compiling python2.5 under msys (specifically but not exclusively under wine) with msvcr80

2009-01-25 Thread Ross Ridge
Luke Kenneth Casson Leighton  l...@lkcl.net wrote:
this is a progress report on compiling python using entirely free
software tools, no proprietary compilers or operating systems
involved, yet still linking and successfully running with msvcr80
assemblies.

MSVCR80.DLL is part of the Microsoft Visual C++ runtime library, and isn't
free software in the FSF sense.  It's free as in beer, but then so is
the Microsoft compiler.

Ross Ridge

-- 
 l/  //   Ross Ridge -- The Great HTMU
[oo][oo]  rri...@csclub.uwaterloo.ca
-()-/()/  http://www.csclub.uwaterloo.ca/~rridge/ 
 db  //   
--
http://mail.python.org/mailman/listinfo/python-list


Re: About SCons Re: progress: compiling python2.5 under msys (specifically but not exclusively under wine) with msvcr80

2009-01-24 Thread anatoly techtonik
On Sat, Jan 24, 2009 at 12:28 AM, Roumen Petrov

 I would better use SCons for both unix and windows builds. In case of
 windows for both compilers - mingw and microsoft ones. To port curses
 extension to windows I need to know what gcc options mean, what are
 the rules to write Makefiles and how to repeat these rules as well as
 find options in visual studio interface. Not mentioning various
 platform-specific defines and warning fixes.

 Did you select one of existing curses library for windows ?

I've selected PDCurses and successfully compiled the module and run
demos manually - you may see the batch and the patch at
http://bugs.python.org/issue2889

However, I was asked for VS2008 project file and this is where it all
stopped for 8 months already. First I couldn't get the VS2008, then it
refused to run on my W2K and now I can't get enough time to learn it
(including that I have 50%/40% experience in PHP/Python and only 5%/5%
C/Java).

-- 
--anatoly t.
--
http://mail.python.org/mailman/listinfo/python-list


Re: About SCons Re: progress: compiling python2.5 under msys (specifically but not exclusively under wine) with msvcr80

2009-01-23 Thread Roumen Petrov

anatoly techtonik wrote:

On Thu, Jan 22, 2009 at 12:51 AM, Roumen Petrov
bugtr...@roumenpetrov.info wrote:

Against 2.3, rejected due to dependence on SCons.
Also appears to have been incomplete, needing more work.

No it was complete but use SCons. Most of changes changes in code you will
see again in 3871.



I would better use SCons for both unix and windows builds. In case of
windows for both compilers - mingw and microsoft ones. To port curses
extension to windows I need to know what gcc options mean, what are
the rules to write Makefiles and how to repeat these rules as well as
find options in visual studio interface. Not mentioning various
platform-specific defines and warning fixes.


Did you select one of existing curses library for windows ?

Roumen
--
http://mail.python.org/mailman/listinfo/python-list


About SCons Re: [Python-Dev] progress: compiling python2.5 under msys (specifically but not exclusively under wine) with msvcr80

2009-01-22 Thread anatoly techtonik
On Thu, Jan 22, 2009 at 12:51 AM, Roumen Petrov
bugtr...@roumenpetrov.info wrote:

 Against 2.3, rejected due to dependence on SCons.
 Also appears to have been incomplete, needing more work.

 No it was complete but use SCons. Most of changes changes in code you will
 see again in 3871.


I would better use SCons for both unix and windows builds. In case of
windows for both compilers - mingw and microsoft ones. To port curses
extension to windows I need to know what gcc options mean, what are
the rules to write Makefiles and how to repeat these rules as well as
find options in visual studio interface. Not mentioning various
platform-specific defines and warning fixes.
-- 
--anatoly t.
--
http://mail.python.org/mailman/listinfo/python-list


progress: compiling python2.5 under msys (specifically but not exclusively under wine) with msvcr80

2009-01-21 Thread Luke Kenneth Casson Leighton
this is a progress report on compiling python using entirely free
software tools, no proprietary compilers or operating systems
involved, yet still linking and successfully running with msvcr80
assemblies.  manifests and rc files, which are compiled to internal
resources, have been added.
various sections which are uniquely identifed by _MSC_VER = 1400 etc
have had to be enabled with corresponding MSVCRT_VERSION = 0x0800 -
in particular, signal handling (PyOS_getsig()).

currently, under wine with msvcr80, there looks like there is a bug
with a common theme related to threads, but here's a short list:
test_array.py is blocking, test_bz2.py is hanging and test_cmd_line.py
causes a segfault; test_ctypes is _still_ a bundle of fun. for those
people who use native win32 platforms who are compiling up this code,
you should have better luck.

significantly, the wine developers have been absolutely fantastic, and
have fixed several bugs in wine, sometimes within hours, that were
found as a result of running the extremely comprehensive python
regression tests.

the python regression tests are a credit to the collaborative
incremental improvement process of free software development.

i look forward to seeing the same incremental improvement applied to
the development of python, evidence of which would be clearly seen by
the acceptance of one of the following patches, one of which is dated
2003:
http://bugs.python.org/issue3754
http://bugs.python.org/issue841454
http://bugs.python.org/issue3871
http://bugs.python.org/issue4954
http://bugs.python.org/issue5010

for those people wishing to track and contribute to the development of
python for win32 using entirely free software tools, either under wine
or native windows, there is a git repository, here, slightly
illogically named pythonwine because that's where i started from
(cross-compiling python under wine, so i could get at the wine
registry from python).  obviously, since then, things have... moved on
:)

http://github.com/lkcl/pythonwine/tree/python_2.5.2_wine

l.
--
http://mail.python.org/mailman/listinfo/python-list


Re: progress: compiling python2.5 under msys (specifically but not exclusively under wine) with msvcr80

2009-01-21 Thread Luke Kenneth Casson Leighton
 http://bugs.python.org/issue5010

correction: that's http://bugs.python.org/issue5026 apologies for the mix-up.

also,for the msvcrt80 build, it is _essential_ that you use a patched
version of mingw32-runtime, see:
https://sourceforge.net/tracker/index.php?func=detailaid=2134161group_id=2435atid=352435
libmsvcr80.a mistakenly thinks that _fstat exists (it doesn't - only
_fstat32 does, and many more).
it's quite straightforward to rebuild - just remember to run
./configure --prefix=/mingw and if you want to revert just reinstall
mingw runtime .exe

l.
--
http://mail.python.org/mailman/listinfo/python-list


Re: progress: compiling python2.5 under msys (specifically but not exclusively under wine) with msvcr80

2009-01-21 Thread Terry Reedy

Luke Kenneth Casson Leighton wrote:


i look forward to seeing the same incremental improvement applied to
the development of python, evidence of which would be clearly seen by
the acceptance of one of the following patches, one of which is dated
2003:



http://bugs.python.org/issue841454


Against 2.3, rejected due to dependence on SCons.
Also appears to have been incomplete, needing more work.


http://bugs.python.org/issue3754


Open by Roumen Petrov, no review, see below.


http://bugs.python.org/issue3871


Open, from same submitter, only (minor) review by you.
Does this supercede 3754?


http://bugs.python.org/issue4954


Yours, Martin reviewed and closed.
FWIW, the comment about not adding 'minority' platform specific stuff to 
the core (as opposed to 'neutral' changes that make them easier) was 
also applied, a week or two ago, to the BEOS successor.

I added 5026 as superceder.


http://bugs.python.org/issue5026 # number corrected


Successor to 4954


for those people wishing to track and contribute to the development of
python for win32 using entirely free software tools, either under wine
or native windows, there is a git repository, here, slightly
illogically named pythonwine because that's where i started from
(cross-compiling python under wine, so i could get at the wine
registry from python).  obviously, since then, things have... moved on
:)

http://github.com/lkcl/pythonwine/tree/python_2.5.2_wine


Are there 'neutral' changes to the core you would like that would make 
maintaining this and other platform-specific patch sets easier?


Terry Jan Reedy

--
http://mail.python.org/mailman/listinfo/python-list


Re: progress: compiling python2.5 under msys (specifically but not exclusively under wine) with msvcr80

2009-01-21 Thread Roumen Petrov

Terry Reedy wrote:

Luke Kenneth Casson Leighton wrote:


i look forward to seeing the same incremental improvement applied to
the development of python, evidence of which would be clearly seen by
the acceptance of one of the following patches, one of which is dated
2003:



http://bugs.python.org/issue841454


Against 2.3, rejected due to dependence on SCons.
Also appears to have been incomplete, needing more work.
No it was complete but use SCons. Most of changes changes in code you 
will see again in 3871.



http://bugs.python.org/issue3754


Open by Roumen Petrov, no review, see below.


This is again request and the patch is for trunk. It share common idea with
841454:Cross building python for mingw32:Andreas Ames (yxcv):2003-11-13 
14:31

1006238:Cross compile patch:Daniel Goertzen (goertzen):2004-08-09 22:05
1597850:Cross compiling patches for MINGW hanwen:2006-11-16 16:57



http://bugs.python.org/issue3871


Open, from same submitter, only (minor) review by you.
Does this supercede 3754?
No. It share common changes to code with 841454, 1006238, 1412448, 
1597850. May be 1597850 and 3871 supercede 1412448.


The issue3871 raise questions (and include solution/work around) related to:
2942 - mingw/cygwin do not accept asm file as extension source
2445 - Use The CygwinCCompiler Under Cygwin
1706863 - Failed to build Python 2.5.1 with sqlite3

Also issues related to LDFLAGS:
4010 - configure options don't trickle down to distutils
1628484 - Python 2.5 64 bit compile fails on Solaris 10/gcc 4.1.1

[SNIP]
--
http://mail.python.org/mailman/listinfo/python-list