@@ -3,7 +3,7 @@ Example Python extension for Windows NT
3
3
4
4
This directory contains everything needed (except for the Python
5
5
distribution!) to build a Python extension module using Microsoft VC++.
6
- Notice that you need to use the same compiler version that was used to build
6
+ Notice that you need to use the same compiler version that was used to build
7
7
Python itself.
8
8
9
9
The simplest way to build this example is to use the distutils script
@@ -16,7 +16,7 @@ after everything builds and installs, you can test it:
16
16
% python -c "import example; example.foo()"
17
17
Hello, world
18
18
19
- See setup.py for more details. alternatively, see below for instructions on
19
+ See setup.py for more details. alternatively, see below for instructions on
20
20
how to build inside the Visual Studio environment.
21
21
22
22
Visual Studio Build Instructions
@@ -27,8 +27,8 @@ instructions and project files have not been updated to the latest VC
27
27
version. In general, it is recommended you use the 'setup.py' instructions
28
28
above.
29
29
30
- It has been tested with VC++ 7.1 on Python 2.4. You can also use earlier
31
- versions of VC to build Python extensions, but the sample VC project file
30
+ It has been tested with VC++ 7.1 on Python 2.4. You can also use earlier
31
+ versions of VC to build Python extensions, but the sample VC project file
32
32
(example.dsw in this directory) is in VC 7.1 format.
33
33
34
34
COPY THIS DIRECTORY!
@@ -129,7 +129,7 @@ created a new project yourself, add the file spam.def to the project now.
129
129
(This is an annoying little file with only two lines. An alternative
130
130
approach is to forget about the .def file, and add the option
131
131
"/export:initspam" somewhere to the Link settings, by manually editing the
132
- "Project -> Properties -> Linker -> Command Line -> Additional Options"
132
+ "Project -> Properties -> Linker -> Command Line -> Additional Options"
133
133
box).
134
134
135
135
You are now all set to build your extension, unless it requires other
@@ -142,13 +142,13 @@ CREATING A BRAND NEW PROJECT
142
142
Use the
143
143
File -> New -> Project...
144
144
dialog to create a new Project Workspace. Select "Visual C++ Projects/Win32/
145
- Win32 Project", enter the name ("spam"), and make sure the "Location" is
146
- set to parent of the spam directory you have created (which should be a direct
147
- subdirectory of the Python build tree, a sibling of Include and PC).
145
+ Win32 Project", enter the name ("spam"), and make sure the "Location" is
146
+ set to parent of the spam directory you have created (which should be a direct
147
+ subdirectory of the Python build tree, a sibling of Include and PC).
148
148
In "Application Settings", select "DLL", and "Empty Project". Click OK.
149
149
150
150
You should now create the file spam.def as instructed in the previous
151
- section. Add the source files (including the .def file) to the project,
151
+ section. Add the source files (including the .def file) to the project,
152
152
using "Project", "Add Existing Item".
153
153
154
154
Now open the
@@ -174,7 +174,7 @@ list in the "Additional Dependencies" box.
174
174
175
175
Select "Debug" in the "Settings for:" dropdown list, and append
176
176
"python24_d.lib" to the list in the Additional Dependencies" box. Then
177
- click on the C/C++ tab, select "Code Generation", and select
177
+ click on the C/C++ tab, select "Code Generation", and select
178
178
"Multi-threaded Debug DLL" from the "Runtime library" dropdown list.
179
179
180
180
Select "Release" again from the "Settings for:" dropdown list.
0 commit comments