Dear friend Heikki Toivonen, thank you for replying to my quest... > C:\Program Files\Plone 2\Python\lib\distutils\extension.py:128: UserWarning: > Unknown Extension options: 'swig_opts'
>>Hmm, I don't remember seeing that. But then again, I haven't compiled >>with the same setup as you either. I am in a quest to find where this comes from. But it is difficult to me as i am a newbie to python and totaly new to SWIG... anyway > Then i open SWIG\_lib.i file and change all %name with %rename >>You don't need to change those, the name vs rename is just a warning. > appart from this i can not find Python.h anywhere ni my pc (WinXp) >>I think that's your real problem. You need the python header(s) etc. to >>build M2Crypto. Seems like your Python distribution does not contain them. -- Heikki Toivonen After changing all %name to %rename the message about Python.h stoped appearing. I also took the steps described in the INSTALL file of m2crypto pack: "Preparation ~~~~~~~~~~~~~ Read Sebastien Sauvage's webpage: http://sebsauvage.net/python/mingw.html" but this is about using mingw32, isn't it? What i get now is: 1) using "python setup.py build" C:\Program Files\Plone 2\Python\lib\distutils\extension.py:128: UserWarning: Unknown Extension options: 'swig_opts' warnings.warn(msg) running build running build_py creating build creating build\lib.win32-2.3 creating build\lib.win32-2.3\M2Crypto copying M2Crypto\ASN1.py -> build\lib.win32-2.3\M2Crypto copying M2Crypto\AuthCookie.py -> build\lib.win32-2.3\M2Crypto . . . copying M2Crypto\_version.py -> build\lib.win32-2.3\M2Crypto copying M2Crypto\__init__.py -> build\lib.win32-2.3\M2Crypto creating build\lib.win32-2.3\M2Crypto\SSL copying M2Crypto\SSL\cb.py -> build\lib.win32-2.3\M2Crypto\SSL . . . copying M2Crypto\SSL\__init__.py -> build\lib.win32-2.3\M2Crypto\SSL creating build\lib.win32-2.3\M2Crypto\PGP copying M2Crypto\PGP\constants.py -> build\lib.win32-2.3\M2Crypto\PGP . . . copying M2Crypto\PGP\__init__.py -> build\lib.win32-2.3\M2Crypto\PGP running build_ext building '__m2crypto' extension C:\SWIG\swig.exe -python -ISWIG -I"c:\openssl\include" -o SWIG/_m2crypto.c SWIG/_m2crypto.i SWIG\_lib.i(527): Error: Syntax error in input(1). error: command 'swig.exe' failed with exit status 1 2) using "python setup.py build -cmingw32" C:\Program Files\Plone 2\Python\lib\distutils\extension.py:128: UserWarning: Unknown Extension options: 'swig_opts' warnings.warn(msg) running build running build_py creating build creating build\lib.win32-2.3 creating build\lib.win32-2.3\M2Crypto copying M2Crypto\ASN1.py -> build\lib.win32-2.3\M2Crypto copying M2Crypto\AuthCookie.py -> build\lib.win32-2.3\M2Crypto . . . copying M2Crypto\PGP\RSA.py -> build\lib.win32-2.3\M2Crypto\PGP copying M2Crypto\PGP\__init__.py -> build\lib.win32-2.3\M2Crypto\PGP running build_ext warning: Python's pyconfig.h doesn't seem to support your compiler. Reason: couldn't read 'C:\Program Files\Plone 2\Pyth on\include\pyconfig.h': No such file or directory. Compiling may fail because of undefined preprocessor macros. building '__m2crypto' extension C:\SWIG\swig.exe -python -ISWIG -I"c:\openssl\include" -o SWIG/_m2crypto.c SWIG/_m2crypto.i SWIG\_lib.i(527): Error: Syntax error in input(1). error: command 'swig.exe' failed with exit status 1 any help would be nice. i would like to buy the 0.13 but the matter is for me to LEARN how to build those packages, read and write Python, use Plone etc. thanks to all of you people that have given so much of your time for a FREE world... Thomas G. Apostolou -- http://mail.python.org/mailman/listinfo/python-list