카테고리 없음
Build Python-mingw without using the Makefiles Package
jaster
2010. 5. 4. 10:39
반응형
Building from the Python-MinGW package will create a python installation with none of the modules that require external libraries. To include the zlib, bzip2, and sqlite modules, you should follow the instructions above entitled Build using the Makefiles Package.
Download Python
Download the python source code from http://www.python.org/download/ .
Download the Patches
Download the patches that match your python version from HERE .
Unpack Python and Apply the Patches
Unpack the tree using and apply the patches:
tar xvzf python-XXX.tgz (adjust this line if you downloaded the .bz2 file)
cd python-XXX
gunzip < ../patches-XXX.gz | patch -b -p0
Building the Source
Make sure the MinGW compilers are at the start of your path. Then:
# cd into the top-level python directory;
cd python-XXX
# Pick your own value for prefix;
./configure --prefix=/cygdrive/c/python-mingw --host=i686-pc-mingw32
make
make install
반응형