[Python-checkins] CVS: python/dist/src/PC/example_nt example.dsp,1.4,1.5 readme.txt,1.8,1.9
Tim Peters
tim_one@users.sourceforge.net
Fri, 19 Jan 2001 00:45:50 -0800
Update of /cvsroot/python/python/dist/src/PC/example_nt
In directory usw-pr-cvs1:/tmp/cvs-serv21213/python/dist/src/PC/example_nt
Modified Files:
example.dsp readme.txt
Log Message:
Update the example DLL instructions for 2.1. Add example.def to the
MSVC project file (as the instructions always recommended doing).
Index: example.dsp
===================================================================
RCS file: /cvsroot/python/python/dist/src/PC/example_nt/example.dsp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** example.dsp 2000/07/02 23:21:49 1.4
--- example.dsp 2001/01/19 08:45:48 1.5
***************
*** 54,58 ****
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
! # ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib python20.lib /nologo /subsystem:windows /dll /machine:I386 /libpath:"..\PCbuild" /export:initexample
# SUBTRACT LINK32 /pdb:none
--- 54,58 ----
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
! # ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib python21.lib /nologo /subsystem:windows /dll /machine:I386 /libpath:"..\PCbuild" /export:initexample
# SUBTRACT LINK32 /pdb:none
***************
*** 81,85 ****
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /debug /machine:I386
! # ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib python20_d.lib /nologo /subsystem:windows /dll /debug /machine:I386 /out:".\Debug/example_d.dll" /libpath:"..\PCbuild" /export:initexample
# SUBTRACT LINK32 /pdb:none
--- 81,85 ----
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /debug /machine:I386
! # ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib python21_d.lib /nologo /subsystem:windows /dll /debug /machine:I386 /out:".\Debug/example_d.dll" /libpath:"..\PCbuild" /export:initexample
# SUBTRACT LINK32 /pdb:none
***************
*** 96,99 ****
--- 96,103 ----
SOURCE=.\example.c
+ # End Source File
+ # Begin Source File
+
+ SOURCE=.\example.def
# End Source File
# Begin Source File
Index: readme.txt
===================================================================
RCS file: /cvsroot/python/python/dist/src/PC/example_nt/readme.txt,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** readme.txt 2001/01/17 23:23:13 1.8
--- readme.txt 2001/01/19 08:45:48 1.9
***************
*** 5,9 ****
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,
but the sample VC project file (example.dsw in this directory) is in VC 6
format.
--- 5,9 ----
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.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.
***************
*** 23,27 ****
File -> Open Workspace...
dialog (*not* the "File -> Open..." dialog!). Navigate to and select the
! file "example.dsw". Click Open.
BUILD THE EXAMPLE DLL
--- 23,29 ----
File -> Open Workspace...
dialog (*not* the "File -> Open..." dialog!). Navigate to and select the
! file "example.dsw", in the *copy* of the example_nt directory you made
! above.
! Click Open.
BUILD THE EXAMPLE DLL
***************
*** 53,64 ****
Adding parser accelerators ...
Done.
! Python 2.0b1 (#0, Jul 1 2000, 11:29:37) [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]
>>> example.foo()
Hello, world
! [8830 refs]
>>>
--- 55,66 ----
Adding parser accelerators ...
Done.
! 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
! [4897 refs]
>>> example.foo()
Hello, world
! [4903 refs]
>>>
***************
*** 70,76 ****
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)
>>> import example
>>> example.foo()
--- 72,77 ----
C>..\..\PCbuild\python
! 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()
***************
*** 124,128 ****
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
platform (in my version, this is the only choice). Make sure the "Create
new workspace" radio button is selected. Click OK.
--- 125,129 ----
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 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.