diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-01-19 08:45:48 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-01-19 08:45:48 (GMT) |
commit | a2bf2709b39b7848e4f887bc60289b64e2562f36 (patch) | |
tree | 9e26ead502d639c5fea5e85ad5228f4c04a066e5 /PC/example_nt/readme.txt | |
parent | cc583636110efb152268a4a90cf3f363a3eec5de (diff) | |
download | cpython-a2bf2709b39b7848e4f887bc60289b64e2562f36.zip cpython-a2bf2709b39b7848e4f887bc60289b64e2562f36.tar.gz cpython-a2bf2709b39b7848e4f887bc60289b64e2562f36.tar.bz2 |
Update the example DLL instructions for 2.1. Add example.def to the
MSVC project file (as the instructions always recommended doing).
Diffstat (limited to 'PC/example_nt/readme.txt')
-rw-r--r-- | PC/example_nt/readme.txt | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/PC/example_nt/readme.txt b/PC/example_nt/readme.txt index 66dbea0..cf49129 100644 --- a/PC/example_nt/readme.txt +++ b/PC/example_nt/readme.txt @@ -4,7 +4,7 @@ Example Python extension for Windows NT This directory contains everything needed (except for the Python
distribution!) to build a Python extension module using Microsoft VC++
("Developer Studio") version 6. It has been tested with VC++ 6.0 on Python
-2.0b1. You can also use earlier versions of VC to build Python extensions,
+2.1a1. You can also use earlier versions of VC to build Python extensions,
but the sample VC project file (example.dsw in this directory) is in VC 6
format.
@@ -22,7 +22,9 @@ OPEN THE PROJECT From VC 6.x, use the
File -> Open Workspace...
dialog (*not* the "File -> Open..." dialog!). Navigate to and select the
-file "example.dsw". Click Open.
+file "example.dsw", in the *copy* of the example_nt directory you made
+above.
+Click Open.
BUILD THE EXAMPLE DLL
---------------------
@@ -52,14 +54,14 @@ debug output from Python may not match this screen dump exactly): C>..\..\PCbuild\python_d
Adding parser accelerators ...
Done.
- Python 2.0b1 (#0, Jul 1 2000, 11:29:37) [MSC 32 bit (Intel)] on win32
+ 2.1a1 (#9, Jan 17 2001, 23:26:42) [MSC 32 bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
Copyright 1995-2000 Corporation for National Research Initiatives (CNRI)
>>> import example
- [8830 refs]
+ [4897 refs]
>>> example.foo()
Hello, world
- [8830 refs]
+ [4903 refs]
>>>
TESTING THE RELEASE-MODE DLL
@@ -69,9 +71,8 @@ example_nt\Release. You should now be able to repeat the following session ("C>" is the DOS prompt, ">>>" is the Python prompt):
C>..\..\PCbuild\python
- Python 2.0b1 (#0, Jul 1 2000, 11:28:35) [MSC 32 bit (Intel)] on win32
- Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
- Copyright 1995-2000 Corporation for National Research Initiatives (CNRI)
+ Python 2.1a1 (#9, Jan 17 2001, 23:26:37) [MSC 32 bit (Intel)] on win32
+ Type "copyright", "credits" or "license" for more information.
>>> import example
>>> example.foo()
Hello, world
@@ -123,7 +124,7 @@ Use the dialog to create a new Project Workspace. Select "Win32 Dynamic-Link
Library", enter the name ("spam"), and make sure the "Location" is set to
the spam directory you have created (which should be a direct subdirectory
-of the Python build tree, a sibling of Inclue and PC). Select Win32 as the
+of the Python build tree, a sibling of Include and PC). Select Win32 as the
platform (in my version, this is the only choice). Make sure the "Create
new workspace" radio button is selected. Click OK.
|