473,382 Members | 1,258 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Compiling Python24a3 in MinGW & tests

Hello all.
After the effort of getting most of Python 2.3.4 Final compiled in
MinGW (see: http://mail.python.org/pipermail/pyt...ne/225967.html,
and get the patch and read more about it here:
http://jove.prohosting.com/iwave/ipython/pyMinGW.html), allow me to
report that it is now also possible to compile and build most of
python24a3 in MinGW as well.

Few issues remain. For a detailed list of those visit
(http://jove.prohosting.com/iwave/ipython/issues.html). For now I just
want to mention that almost all tests of modules or code (as of CVS
Python source of Sept, 9th, 2004) that was compiled in MinGW pass or
skip quietly if invoked on their own.

However, and hoping that someone would know why, several module tests
fail (and crash the MinGW compiled python24a3: Windows bluescreen
shows) when run from the regrtest framework. These include:

- test_codeccallbacks,
- test_codecs,
- test_normalization,
- test_pyexpat,
- test_re,
- test_minidom,
- test_stringprep,
- test_ucn,
- test_unicode
- test_unicode_file, and
- test_unicodedata
Some modules are also causing MinGW python24a3 to show the dreaded
Windows' bluescreen. These include:
- zlib
- _testcapi
- pyexpat, but only when used by test_sax inside the regrtest.
+---------------------------------------------------------------+
My system:
+---------------------------------------------------------------+
+ Win98
+ GCC 3.4.1 mingw special
+ DEV-C++ v. 4.9.8.5
+ MYSYS v. 1.0.9
With that in mind, I am unable to test module _socket, as Windows 98
does not support some of the new API calls of the latest python:
getaddrinfo, and friends. However, I have a feeling that the patched
module will work if compiled in MinGW under anything higher than
WinMe.

+---------------------------------------------------------------+
For file sizes, here is the list:
+---------------------------------------------------------------+
PYTHON EXE 6.656 09/09/04 3:53 python.exe
PYTHONW EXE 6.656 09/09/04 3:53 pythonw.exe
W9XPOPEN EXE 6.144 09/09/04 3:51 w9xpopen.exe
PYTHON24 DLL 2.046.464 09/09/04 3:49 python24.dll

+---------------------------------------------------------------+
Running python24a3 from MSYS:
+---------------------------------------------------------------+
$ python -i
Python 2.4a3 (#56, Sep 9 2004, 03:39:46)
[GCC 3.4.1 (mingw special)] on win32
Type "help", "copyright", "credits" or "license" for more information.
from test import test_unicode_file as t
t.test_main() test_directories (test.test_unicode_file.TestUnicodeFiles) ... ok
test_equivalent_files (test.test_unicode_file.TestUnicodeFiles) ... ok
test_single_files (test.test_unicode_file.TestUnicodeFiles) ... ok

----------------------------------------------------------------------
Ran 3 tests in 0.870s

OK

+---------------------------------------------------------------+
Summary of regrtest.main() output after renaming the
tests listed above and renaming _socket.pyd, pyexpat.pyd,
zlib.pyd, and _testcapi so as python cannot find them:
+---------------------------------------------------------------+
200 tests OK.
5 tests failed:
test___all__ test_cookielib test_mailbox test_mimetools
test_pyclbr
72 tests skipped:
test__locale test_aepack test_al test_applesingle test_asynchat
test_bsddb test_bsddb185 test_bsddb3 test_capi test_cd test_cgi
test_cl test_codecmaps_cn test_codecmaps_hk test_codecmaps_jp
test_codecmaps_kr test_codecmaps_tw test_commands test_crypt
test_curses test_dbm test_dl test_email test_email_codecs
test_exceptions test_fcntl test_fork1 test_gdbm test_getargs2
test_gl test_grp test_gzip test_httplib test_imaplib test_imgfile
test_ioctl test_largefile test_linuxaudiodev test_logging
test_macfs test_macostools test_mhlib test_mimetypes test_nis
test_openpty test_ossaudiodev test_pep277 test_plistlib test_poll
test_posix test_pty test_pwd test_resource test_robotparser
test_sax test_scriptpackages test_signal test_socket
test_socket_ssl test_socketserver test_sunaudiodev test_sundry
test_tcl test_threadsignals test_timeout test_timing test_urllib
test_urllib2 test_urllib2net test_urllibnet test_zipimport
test_zlib
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File
"F:\PROGRAMS\MISC\BIN\PY24\PYTHON\DIST\SRC\lib\tes t\regrtest.py", line
363, in main
e = _ExpectedSkips()
File
"F:\PROGRAMS\MISC\BIN\PY24\PYTHON\DIST\SRC\lib\tes t\regrtest.py", line
1064, in __init__
from test import test_normalization
ImportError: cannot import name test_normalization raise SystemExit


And BTW, distutils was also patched to default to using the MinGW
compiler for building extensions when it detects that the python it is
running on was compiled in MinGW. It basically looks for the
sys.version info, and if it finds the string "mingw" it configures the
MinGW compiler for use.
Finally, this is provided in the hope that some people will benefit
from it, and that some will actually help improve the pyMinGW patch so
as using the MinGW compiler would get to be as easy as using any
other. Any thoughts are welcome.
Regards
Khalid

--
Q. The purpose of life?

[A]: "I created the jinn and humankind only that they might
worship Me." (Translation, Qur'an, 51:56)

[b]: "Let us hear the conclusion of the whole matter:
Fear God, and keep his commandments: for this is the
whole duty of man." (KJV, Ecclesiastes 12:13)
Jul 18 '05 #1
0 1689

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Joonas Paalasmaa | last post by:
Hi, When compiling Sketch's streamfilter C extension the errors below are raised during linking. What could cause the errors? (Python 2.3, MinGw 1.1 with GCC 2.95.3-6, Windows 98) Here are...
1
by: sid | last post by:
Can someone give me some pointers on compiling IO under Mingw? Basically what packages i would require other than the mingw base package. And any changes that may be required within the setup...
1
by: A. B., Khalid | last post by:
Hello all. After a search on Google it would seem that the users of Mingw have not had good results in compiling the python sources natively. See at least: ...
4
by: Harald Mossige | last post by:
Dev-Cpp "dont se" MinGW. (Win2K) I have downloaded and run: devlup4991nomingw_setup.exe and MinGW-3.1.0-1.exe in those dirrectory:
4
by: rhzehr | last post by:
Hi, I have been having an insane amount of trouble trying to compile a GNU Scientific Library example with MinGW on WinXP. I have been able to compile it fine on my linux box and on my windows...
8
by: rays | last post by:
Hi, I am trying to port a C++ program which is supposed to be standards compliant. It works fine on Linux with GCC (4.x). But as I try to compile it on Windows, all hell breaks loose. I have been...
1
by: boriq | last post by:
Hi, I'm trying to compile sip 4.6 on windows vista. I have Python 2.5 installed in c:\Python25. I have Qt 4.3.0 installed in c:\Qt\4.3.0 together with MinGW in c: \MinGW. I have environment...
81
by: =?utf-8?B?4piG4piG4piG4piG4piGIFPDvCBLZWl0aCBDaGFr | last post by:
Installed this compiler on Vista; a simple "hello world" after compiled and run would pop-up a window "source file not compiled" I've seen this question asked a few times on Internet groups and...
2
by: eliben | last post by:
On Jun 27, 3:10 pm, eliben <eli...@gmail.comwrote: Problem solved: http://eli.thegreenplace.net/2008/06/28/compiling-python-extensions-with-distutils-and-mingw/
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.