blob: 764ab8a74af78348d5821f7ecab7be8274239092 [file] [log] [blame]
Christian Heimes5b5e81c2007-12-31 16:14:33 +00001Building Python using VC++ 9.0
2------------------------------
Christian Heimes57dddfb2008-01-02 18:30:52 +00003
Tim Peters4b5fb072000-07-01 00:03:43 +00004This directory is used to build Python for Win32 platforms, e.g. Windows
Christian Heimes5b5e81c2007-12-31 16:14:33 +000052000, XP and Vista. It requires Microsoft Visual C++ 9.0
6(a.k.a. Visual Studio .NET 2008).
Guido van Rossum15b239f1998-05-26 14:16:23 +00007(For other Windows platforms and compilers, see ../PC/readme.txt.)
8
Christian Heimes5b5e81c2007-12-31 16:14:33 +00009All you need to do is open the workspace "pcbuild.sln" in Visual Studio,
10select the desired combination of configuration and platform and eventually
11build the solution. Unless you are going to debug a problem in the core or
12you are going to create an optimized build you want to select "Release" as
13configuration.
Guido van Rossum15b239f1998-05-26 14:16:23 +000014
Christian Heimes5b5e81c2007-12-31 16:14:33 +000015The PCbuild directory is compatible with all versions of Visual Studio from
16VS C++ Express Edition over the standard edition up to the professional
17edition. However the express edition does support features like solution
18folders or profile guided optimization (PGO). The missing bits and pieces
19won't stop you from building Python.
Guido van Rossum15b239f1998-05-26 14:16:23 +000020
Christian Heimes5b5e81c2007-12-31 16:14:33 +000021The solution is configured to build the projects in the correct order. "Build
22Solution" or F6 takes care of dependencies except for x64 builds. To make
23cross compiling x64 builds on a 32bit OS possible the x64 builds require a
2432bit version of Python.
Guido van Rossum15b239f1998-05-26 14:16:23 +000025
Tim Peters4b5fb072000-07-01 00:03:43 +000026
Christian Heimes5b5e81c2007-12-31 16:14:33 +000027NOTE:
28 You probably don't want to build most of the other subprojects, unless
29 you're building an entire Python distribution from scratch, or
30 specifically making changes to the subsystems they implement, or are
31 running a Python core buildbot test slave; see SUBPROJECTS below)
Guido van Rossum15b239f1998-05-26 14:16:23 +000032
33When using the Debug setting, the output files have a _d added to
Martin v. Löwisff0940f2007-08-30 05:40:17 +000034their name: python30_d.dll, python_d.exe, parser_d.pyd, and so on.
Guido van Rossume79cf321998-07-07 22:35:03 +000035
Christian Heimes5b5e81c2007-12-31 16:14:33 +000036The 32bit builds end up in the solution folder PCbuild while the x64 builds
37land in the amd64 subfolder. The PGI and PGO builds for profile guided
38optimization end up in their own folders, too.
39
Christian Heimes57dddfb2008-01-02 18:30:52 +000040Legacy support
41--------------
42
43You can find build directories for older versions of Visual Studio and
44Visual C++ in the PC directory. The legacy build directories are no longer
45actively maintained and may not work out of the box.
46
47PC/VC6/
48 Visual C++ 6.0
49PC/VS7.1/
50 Visual Studio 2003 (7.1)
51PCbuild8/
52 Visual Studio 2005 (8.0)
53
54
55C RUNTIME
56---------
57
58Visual Studio 2008 uses version 9 of the C runtime (MSVCRT9). The executables
59are linked to a CRT "side by side" assembly which must be present on the target
60machine. This is avalible under the VC/Redist folder of your visual studio
61distribution. On XP and later operating systems that support
62side-by-side assemblies it is not enough to have the msvcrt80.dll present,
63it has to be there as a whole assembly, that is, a folder with the .dll
64and a .manifest. Also, a check is made for the correct version.
65Therefore, one should distribute this assembly with the dlls, and keep
66it in the same directory. For compatibility with older systems, one should
67also set the PATH to this directory so that the dll can be found.
68For more info, see the Readme in the VC/Redist folder.
69
Tim Peters4b5fb072000-07-01 00:03:43 +000070SUBPROJECTS
71-----------
Tim Peters610a8272000-07-01 02:51:23 +000072These subprojects should build out of the box. Subprojects other than the
Tim Petersbefc97c2001-01-18 19:01:39 +000073main ones (pythoncore, python, pythonw) generally build a DLL (renamed to
Tim Peters610a8272000-07-01 02:51:23 +000074.pyd) from a specific module so that users don't have to load the code
Tim Peters4b5fb072000-07-01 00:03:43 +000075supporting that module unless they import the module.
Guido van Rossume79cf321998-07-07 22:35:03 +000076
Tim Peters97c96402001-01-17 23:23:13 +000077pythoncore
Tim Peters4b5fb072000-07-01 00:03:43 +000078 .dll and .lib
79python
80 .exe
81pythonw
82 pythonw.exe, a variant of python.exe that doesn't pop up a DOS box
83_socket
84 socketmodule.c
Tim Petersd66595f2001-02-04 03:09:53 +000085_testcapi
Tim Petersb16c56f2001-02-02 21:24:51 +000086 tests of the Python C API, run via Lib/test/test_capi.py, and
Tim Petersd66595f2001-02-04 03:09:53 +000087 implemented by module Modules/_testcapimodule.c
Tim Petersb012a152002-02-13 23:56:46 +000088pyexpat
89 Python wrapper for accelerated XML parsing, which incorporates stable
90 code from the Expat project: http://sourceforge.net/projects/expat/
Tim Peters4b5fb072000-07-01 00:03:43 +000091select
92 selectmodule.c
Tim Peters19f52c22001-01-24 10:07:22 +000093unicodedata
Tim Peters4b5fb072000-07-01 00:03:43 +000094 large tables of Unicode data
Tim Peters4b5fb072000-07-01 00:03:43 +000095winsound
96 play sounds (typically .wav files) under Windows
97
Christian Heimes5b5e81c2007-12-31 16:14:33 +000098The following subprojects will generally NOT build out of the box. They
Tim Peters4b5fb072000-07-01 00:03:43 +000099wrap code Python doesn't control, and you'll need to download the base
Tim Petersaff12842000-08-25 06:52:44 +0000100packages first and unpack them into siblings of PCbuilds's parent
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000101directory; for example, if your PCbuild is ..\dist\py3k\PCbuild\,
102unpack into new subdirectories of ..\dist\.
Tim Peters4b5fb072000-07-01 00:03:43 +0000103
104_tkinter
Tim Peters077736b2002-11-14 23:24:40 +0000105 Python wrapper for the Tk windowing system. Requires building
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000106 Tcl/Tk first. Following are instructions for Tcl/Tk 8.4.16.
107
108 NOTE: The 64 build builds must land in tcltk64 instead of tcltk.
Tim Peters077736b2002-11-14 23:24:40 +0000109
110 Get source
111 ----------
Thomas Wouters49fd7fa2006-04-21 10:40:58 +0000112 In the dist directory, run
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000113 svn export http://svn.python.org/projects/external/tcl8.4.16
114 svn export http://svn.python.org/projects/external/tk8.4.16
Thomas Wouters49fd7fa2006-04-21 10:40:58 +0000115 svn export http://svn.python.org/projects/external/tix-8.4.0
Tim Peters077736b2002-11-14 23:24:40 +0000116
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000117 Build with build_tkinter.py
118 ---------------------------
119 The PCbuild directory contains a Python script which automates all
Christian Heimes25bb7832008-01-11 16:17:00 +0000120 steps. Run the script in a Visual Studio 2008 command prompt with
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000121
122 python build_tkinter.py Win32
123
124 Use x64 instead of Win32 for the x64 platform.
125
126 Build Tcl first
Tim Peters6c629952002-11-15 18:36:11 +0000127 ---------------
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000128 Use "Start -> All Programs -> Microsoft Visual Studio 2008
129 -> Visual Studio Tools -> Visual Studio 2008 Command Prompt"
Guido van Rossumd54357d2004-03-20 21:00:26 +0000130 to get a shell window with the correct environment settings
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000131 cd dist\tcl8.4.16\win
Tim Peters077736b2002-11-14 23:24:40 +0000132 nmake -f makefile.vc
Martin v. Löwis6de2d4d2004-08-30 09:22:04 +0000133 nmake -f makefile.vc INSTALLDIR=..\..\tcltk install
Tim Peters077736b2002-11-14 23:24:40 +0000134
135 XXX Should we compile with OPTS=threads?
136
Tim Peters011de6cc2004-04-11 17:29:12 +0000137 Optional: run tests, via
138 nmake -f makefile.vc test
139
Martin v. Löwis6de2d4d2004-08-30 09:22:04 +0000140 On WinXP Pro, wholly up to date as of 30-Aug-2004:
Tim Peterse82b00f2004-08-30 21:14:51 +0000141 all.tcl: Total 10678 Passed 9969 Skipped 709 Failed 0
Tim Peters011de6cc2004-04-11 17:29:12 +0000142 Sourced 129 Test Files.
Tim Peters077736b2002-11-14 23:24:40 +0000143
Tim Peters077736b2002-11-14 23:24:40 +0000144 Build Tk
Tim Peters6c629952002-11-15 18:36:11 +0000145 --------
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000146 cd dist\tk8.4.16\win
147 nmake -f makefile.vc TCLDIR=..\..\tcl8.4.16
148 nmake -f makefile.vc TCLDIR=..\..\tcl8.4.16 INSTALLDIR=..\..\tcltk install
Tim Peters077736b2002-11-14 23:24:40 +0000149
150 XXX Should we compile with OPTS=threads?
151
Tim Peters077736b2002-11-14 23:24:40 +0000152 XXX Our installer copies a lot of stuff out of the Tcl/Tk install
153 XXX directory. Is all of that really needed for Python use of Tcl/Tk?
154
Tim Peters011de6cc2004-04-11 17:29:12 +0000155 Optional: run tests, via
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000156 nmake -f makefile.vc TCLDIR=..\..\tcl8.4.16 test
Tim Peters011de6cc2004-04-11 17:29:12 +0000157
Martin v. Löwis6de2d4d2004-08-30 09:22:04 +0000158 On WinXP Pro, wholly up to date as of 30-Aug-2004:
Tim Peterse82b00f2004-08-30 21:14:51 +0000159 all.tcl: Total 8420 Passed 6826 Skipped 1581 Failed 13
Martin v. Löwis6de2d4d2004-08-30 09:22:04 +0000160 Sourced 91 Test Files.
Tim Peterse82b00f2004-08-30 21:14:51 +0000161 Files with failing tests: canvImg.test scrollbar.test textWind.test winWm.test
Tim Peters63db6282005-08-07 02:47:12 +0000162
Martin v. Löwis3cf21632004-08-31 16:22:09 +0000163 Built Tix
164 ---------
Thomas Wouters49fd7fa2006-04-21 10:40:58 +0000165 cd dist\tix-8.4.0\win
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000166 nmake -f python9.mak
167 nmake -f python9.mak install
Tim Peters4b5fb072000-07-01 00:03:43 +0000168
Tim Petersb0ead4e2002-11-09 04:48:58 +0000169bz2
170 Python wrapper for the libbz2 compression library. Homepage
171 http://sources.redhat.com/bzip2/
Martin v. Löwisf6f79252006-03-13 13:48:05 +0000172 Download the source from the python.org copy into the dist
173 directory:
174
Martin v. Löwis14c1cf82006-03-13 10:52:04 +0000175 svn export http://svn.python.org/projects/external/bzip2-1.0.3
Tim Peters077736b2002-11-14 23:24:40 +0000176
Thomas Heller46a007e2003-08-20 18:27:36 +0000177 A custom pre-link step in the bz2 project settings should manage to
Tim Peters7ccbb072006-03-13 19:43:34 +0000178 build bzip2-1.0.3\libbz2.lib by magic before bz2.pyd (or bz2_d.pyd) is
Thomas Heller46a007e2003-08-20 18:27:36 +0000179 linked in PCbuild\.
180 However, the bz2 project is not smart enough to remove anything under
Martin v. Löwis14c1cf82006-03-13 10:52:04 +0000181 bzip2-1.0.3\ when you do a clean, so if you want to rebuild bzip2.lib
182 you need to clean up bzip2-1.0.3\ by hand.
Tim Peters077736b2002-11-14 23:24:40 +0000183
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000184 All of this managed to build libbz2.lib in
185 bzip2-1.0.3\$platform-$configuration\, which the Python project links in.
Tim Petersb0ead4e2002-11-09 04:48:58 +0000186
187
Tim Peters78e35f92002-11-22 20:00:34 +0000188_bsddb
Tim Peters7ccbb072006-03-13 19:43:34 +0000189 To use the version of bsddb that Python is built with by default, invoke
Martin v. Löwisf6f79252006-03-13 13:48:05 +0000190 (in the dist directory)
Tim Petersb0ead4e2002-11-09 04:48:58 +0000191
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000192 svn export http://svn.python.org/projects/external/db-4.4.20
Martin v. Löwisf6f79252006-03-13 13:48:05 +0000193
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000194 Next open the solution file db-4.4.20\build_win32\Berkeley_DB.sln with
195 Visual Studio and convert the projects to the new format. The standard
196 and professional version of VS 2008 builds the necessary libraries
197 in a pre-link step of _bsddb. However the express edition is missing
198 some pieces and you have to build the libs yourself.
199
200 The _bsddb subprojects depends only on the db_static project of
201 Berkeley DB. You have to choose either "Release", "Release AMD64", "Debug"
202 or "Debug AMD64" as configuration.
Martin v. Löwisf6f79252006-03-13 13:48:05 +0000203
Tim Peters32d996f2006-03-13 19:35:53 +0000204 Alternatively, if you want to start with the original sources,
Martin v. Löwisf6f79252006-03-13 13:48:05 +0000205 go to Sleepycat's download page:
206 http://www.sleepycat.com/downloads/releasehistorybdb.html
207
208 and download version 4.4.20.
Tim Peters011de6cc2004-04-11 17:29:12 +0000209
210 With or without strong cryptography? You can choose either with or
211 without strong cryptography, as per the instructions below. By
Thomas Heller81391402004-07-02 08:58:46 +0000212 default, Python is built and distributed WITHOUT strong crypto.
Tim Peters011de6cc2004-04-11 17:29:12 +0000213
Martin v. Löwisf6f79252006-03-13 13:48:05 +0000214 Unpack the sources; if you downloaded the non-crypto version, rename
215 the directory from db-4.4.20.NC to db-4.4.20.
Tim Peters011de6cc2004-04-11 17:29:12 +0000216
Martin v. Löwisf6f79252006-03-13 13:48:05 +0000217 Now apply any patches that apply to your version.
Tim Petersa0d781a2004-04-11 18:23:06 +0000218
Tim Peters00640262003-01-24 15:31:31 +0000219 Open
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000220 db-4.4.20\docs\ref\build_win\intro.html
Tim Peters00640262003-01-24 15:31:31 +0000221
Mark Hammond2362da82004-01-06 04:04:01 +0000222 and follow the "Windows->Building Berkeley DB with Visual C++ .NET"
223 instructions for building the Sleepycat
Tim Peters00640262003-01-24 15:31:31 +0000224 software. Note that Berkeley_DB.dsw is in the build_win32 subdirectory.
Martin v. Löwisf6f79252006-03-13 13:48:05 +0000225 Build the "db_static" project, for "Release" mode.
Tim Peters78e35f92002-11-22 20:00:34 +0000226
Tim Peters00640262003-01-24 15:31:31 +0000227 To run extensive tests, pass "-u bsddb" to regrtest.py. test_bsddb3.py
228 is then enabled. Running in verbose mode may be helpful.
229
Thomas Wouters49fd7fa2006-04-21 10:40:58 +0000230_sqlite3
231 Python wrapper for SQLite library.
232
233 Get the source code through
234
235 svn export http://svn.python.org/projects/external/sqlite-source-3.3.4
236
237 To use the extension module in a Python build tree, copy sqlite3.dll into
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000238 the PCbuild folder. The source directory in svn also contains a .def file
239 from the binary release of sqlite3.
Martin v. Löwisb0912412006-03-13 15:37:40 +0000240
Mark Hammondf229f9f2002-12-03 05:47:26 +0000241_ssl
Tim Peterse8bcb252002-12-04 02:39:52 +0000242 Python wrapper for the secure sockets library.
Tim Peters4b5fb072000-07-01 00:03:43 +0000243
Thomas Wouters49fd7fa2006-04-21 10:40:58 +0000244 Get the source code through
Mark Hammondf229f9f2002-12-03 05:47:26 +0000245
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000246 svn export http://svn.python.org/projects/external/openssl-0.9.8g
Tim Peterse8bcb252002-12-04 02:39:52 +0000247
Thomas Wouters49fd7fa2006-04-21 10:40:58 +0000248 Alternatively, get the latest version from http://www.openssl.org.
Mark Hammondf229f9f2002-12-03 05:47:26 +0000249 You can (theoretically) use any version of OpenSSL you like - the
250 build process will automatically select the latest version.
251
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000252 You must install the NASM assembler from
253 http://www.kernel.org/pub/software/devel/nasm/binaries/win32/
254 for x86 builds. Put nasmw.exe anywhere in your PATH.
255
256 You can also install ActivePerl from
Mark Hammondf229f9f2002-12-03 05:47:26 +0000257 http://www.activestate.com/Products/ActivePerl/
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000258 if you like to use the official sources instead of the files from
259 python's subversion repository. The svn version contains pre-build
260 makefiles and assembly files.
261
262 The build process makes sure that no patented algorithms are included.
263 For now RC5, MDC2 and IDEA are excluded from the build. You may have
264 to manually remove $(OBJ_D)\i_*.obj from ms\nt.mak if the build process
265 complains about missing files or forbidden IDEA. Again the files provided
266 in the subversion repository are already fixed.
Mark Hammondf229f9f2002-12-03 05:47:26 +0000267
268 The MSVC project simply invokes PCBuild/build_ssl.py to perform
Tim Peterse8bcb252002-12-04 02:39:52 +0000269 the build. This Python script locates and builds your OpenSSL
Mark Hammondf229f9f2002-12-03 05:47:26 +0000270 installation, then invokes a simple makefile to build the final .pyd.
271
272 build_ssl.py attempts to catch the most common errors (such as not
273 being able to find OpenSSL sources, or not being able to find a Perl
274 that works with OpenSSL) and give a reasonable error message.
275 If you have a problem that doesn't seem to be handled correctly
276 (eg, you know you have ActivePerl but we can't find it), please take
277 a peek at build_ssl.py and suggest patches. Note that build_ssl.py
278 should be able to be run directly from the command-line.
279
Tim Peterse8bcb252002-12-04 02:39:52 +0000280 build_ssl.py/MSVC isn't clever enough to clean OpenSSL - you must do
281 this by hand.
Tim Peters4b5fb072000-07-01 00:03:43 +0000282
Martin v. Löwis13e50fe2004-07-20 14:37:48 +0000283Building for Itanium
284--------------------
285
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000286NOTE:
287Official support for Itanium builds have been dropped from the build. Please
288contact as and provide patches if you are interested in Itanium builds.
289
Tim Peterse82b00f2004-08-30 21:14:51 +0000290The project files support a ReleaseItanium configuration which creates
Martin v. Löwis13e50fe2004-07-20 14:37:48 +0000291Win64/Itanium binaries. For this to work, you need to install the Platform
292SDK, in particular the 64-bit support. This includes an Itanium compiler
293(future releases of the SDK likely include an AMD64 compiler as well).
294In addition, you need the Visual Studio plugin for external C compilers,
295from http://sf.net/projects/vsextcomp. The plugin will wrap cl.exe, to
Tim Peterse82b00f2004-08-30 21:14:51 +0000296locate the proper target compiler, and convert compiler options
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000297accordingly. The project files require atleast version 0.9.
Martin v. Löwis13e50fe2004-07-20 14:37:48 +0000298
Martin v. Löwis856bf9a2006-02-14 20:42:55 +0000299Building for AMD64
300------------------
301
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000302The build process for AMD64 / x64 is very similar to standard builds. You just
303have to set x64 as platform.
Martin v. Löwis856bf9a2006-02-14 20:42:55 +0000304
Thomas Wouters49fd7fa2006-04-21 10:40:58 +0000305Building Python Using the free MS Toolkit Compiler
306--------------------------------------------------
307
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000308Microsoft has withdrawn the free MS Toolkit Compiler, so this can no longer
309be considered a supported option. Instead you can use the free VS C++ Express
310Edition.
Thomas Wouters49fd7fa2006-04-21 10:40:58 +0000311
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000312Profile Guided Optimization
313---------------------------
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000314
Christian Heimes25bb7832008-01-11 16:17:00 +0000315The solution has two configurations for PGO. The PGInstrument
316configuration must be build first. The PGInstrument binaries are
317lniked against a profiling library and contain extra debug
318information. The PGUpdate configuration takes the profiling data and
319generates optimized binaries.
Thomas Wouters49fd7fa2006-04-21 10:40:58 +0000320
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000321The build_pgo.bat script automates the creation of optimized binaries. It
322creates the PGI files, runs the unit test suite or PyBench with the PGI
323python and finally creates the optimized files.
Thomas Wouters49fd7fa2006-04-21 10:40:58 +0000324
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000325http://msdn2.microsoft.com/en-us/library/e7k32f4k(VS.90).aspx
Thomas Wouters49fd7fa2006-04-21 10:40:58 +0000326
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000327Static library
328--------------
Thomas Wouters49fd7fa2006-04-21 10:40:58 +0000329
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000330The solution has no configuration for static libraries. However it is easy
331it build a static library instead of a DLL. You simply have to set the
332"Configuration Type" to "Static Library (.lib)" and alter the preprocessor
333macro "Py_ENABLE_SHARED" to "Py_NO_ENABLE_SHARED". You may also have to
334change the "Runtime Library" from "Multi-threaded DLL (/MD)" to
335"Multi-threaded (/MT)".
Thomas Wouters49fd7fa2006-04-21 10:40:58 +0000336
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000337Visual Studio properties
338------------------------
Thomas Wouters49fd7fa2006-04-21 10:40:58 +0000339
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000340The PCbuild solution makes heavy use of Visual Studio property files
341(*.vsprops). The properties can be viewed and altered in the Property
342Manager (View -> Other Windows -> Property Manager).
Thomas Wouters49fd7fa2006-04-21 10:40:58 +0000343
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000344 * debug (debug macro: _DEBUG)
345 * pginstrument (PGO)
346 * pgupdate (PGO)
347 +-- pginstrument
348 * pyd (python extension, release build)
349 +-- release
350 +-- pyproject
351 * pyd_d (python extension, debug build)
352 +-- debug
353 +-- pyproject
354 * pyproject (base settings for all projects, user macros like PyDllName)
355 * release (release macro: NDEBUG)
356 * x64 (AMD64 / x64 platform specific settings)
Thomas Wouters49fd7fa2006-04-21 10:40:58 +0000357
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000358The pyproject propertyfile defines _WIN32 and x64 defines _WIN64 and _M_X64
359although the macros are set by the compiler, too. The GUI doesn't always know
360about the macros and confuse the user with false information.
Thomas Wouters49fd7fa2006-04-21 10:40:58 +0000361
Tim Petersf9a4a6e2000-07-01 20:38:27 +0000362YOUR OWN EXTENSION DLLs
Tim Peters4b5fb072000-07-01 00:03:43 +0000363-----------------------
Christian Heimes5b5e81c2007-12-31 16:14:33 +0000364
Tim Peters4b5fb072000-07-01 00:03:43 +0000365If you want to create your own extension module DLL, there's an example
366with easy-to-follow instructions in ../PC/example/; read the file
367readme.txt there first.