Downloads
Python
Home
›
Building Python extensions for Windows with only free tools
July 11, 2007 - 3:30am — ErikW (not verified)
Additional Vista info:
The info is great. Some more comments if you use Vista and MinGW:
Install MinGW directly under the root of your hard drive (i.e. C:\mingw)
You need to add references for the lib and libexe to
path
. I do this though a batch file (see below)
In the same batch file I also set the environmental variables for the search paths to include files and libraries.
The batch file was found somewhere on the internets, but I've forgotten where.
This worked for PyCrypto under Vista Ultimate, but YMMW ;-)
@echo off
echo MinGW Enviroment Command Console
echo ....
echo ....
@set MINGWROOT=C:\MinGW
@set MINGWBIN=%MINGWROOT%\bin
@set MINGWINCLUDE=%MINGWROOT%\include
@set MINGWLIB=%MINGWROOT%\lib
@set MINGWLIBEXEC=%MINGWROOT%\libexec\gcc\mingw32\3.4.5
@set MINGWBIN2=%MINGWROOT%\mingw32\bin
@set MINGWLIB2=%MINGWROOT%\mingw32\lib\ldscripts
@set MINGW=%MINGWROOT%;%MINGWBIN%;%MINGWINCLUDE%;%MINGWLIB%;%MINGWLIBEXEC%;%MINGWLIB2%;%MINGWLIB2%
rem to add more resource paths just use the set command like above and the and it to the set PATH like below
@set Path=%MINGW%;%Path%
Written in
WikklyText
.
Reply
Your name:
E-mail:
The content of this field is kept private and will not be shown publicly.
Homepage:
Subject:
Comment:
*
Input format
Filtered HTML
Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
Lines and paragraphs break automatically.
WikklyText, Restricted Mode
Write content in
WikklyText
format -
Restricted (Safe) Mode
.
For detailed help, see the
WikklyText Reference
More information about formatting options
Popular content
All time:
All About Python and Unicode
The Python Tourist #4: None, empty, and nothing.
MYOML #6: Metainfo, notes, warnings, and more HTML tags
Building Python extensions for Windows with only free tools
The Python Tourist #2: Taking Exception
Last viewed:
All About Python and Unicode
Updated: All About Python and Unicode
The Python Tourist #5: Replacing sys.version_info with pyconfig
The Python Tourist #4: None, empty, and nothing.
WinSCP and alternatives for Linux
User login
Username:
*
Password:
*
Create new account
Request new password
Additional Vista info:
echo MinGW Enviroment Command Console
echo ....
echo ....
@set MINGWROOT=C:\MinGW
@set MINGWBIN=%MINGWROOT%\bin
@set MINGWINCLUDE=%MINGWROOT%\include
@set MINGWLIB=%MINGWROOT%\lib
@set MINGWLIBEXEC=%MINGWROOT%\libexec\gcc\mingw32\3.4.5
@set MINGWBIN2=%MINGWROOT%\mingw32\bin
@set MINGWLIB2=%MINGWROOT%\mingw32\lib\ldscripts
@set MINGW=%MINGWROOT%;%MINGWBIN%;%MINGWINCLUDE%;%MINGWLIB%;%MINGWLIBEXEC%;%MINGWLIB2%;%MINGWLIB2%
rem to add more resource paths just use the set command like above and the and it to the set PATH like below
@set Path=%MINGW%;%Path%