Commit 93ca7480 authored by SVN-Git Migration's avatar SVN-Git Migration

Imported Upstream version 1.7.1

parent 4dd7ff2f
...@@ -25,6 +25,7 @@ if "%PY_MAJ%.%PY_MIN%" == "2.4" set COMPILER=msvc71 ...@@ -25,6 +25,7 @@ if "%PY_MAJ%.%PY_MIN%" == "2.4" set COMPILER=msvc71
if "%PY_MAJ%.%PY_MIN%" == "2.5" set COMPILER=msvc71 if "%PY_MAJ%.%PY_MIN%" == "2.5" set COMPILER=msvc71
if "%PY_MAJ%.%PY_MIN%" == "2.6" set COMPILER=msvc90 if "%PY_MAJ%.%PY_MIN%" == "2.6" set COMPILER=msvc90
if "%PY_MAJ%.%PY_MIN%" == "3.0" set COMPILER=msvc90 if "%PY_MAJ%.%PY_MIN%" == "3.0" set COMPILER=msvc90
if "%PY_MAJ%.%PY_MIN%" == "3.1" set COMPILER=msvc90
if exist ..\..\ReleaseEngineering\win32-%COMPILER%\software-versions-%SVN_VER_MAJ_MIN%.cmd ( if exist ..\..\ReleaseEngineering\win32-%COMPILER%\software-versions-%SVN_VER_MAJ_MIN%.cmd (
pushd ..\..\ReleaseEngineering\win32-%COMPILER% pushd ..\..\ReleaseEngineering\win32-%COMPILER%
......
...@@ -5,7 +5,7 @@ if [ ! -z "$1" ] ...@@ -5,7 +5,7 @@ if [ ! -z "$1" ]
then then
PREF_VER=$1.$2 PREF_VER=$1.$2
else else
PREF_VER= PREF_VER=2.7
fi fi
for PY_VER in ${PREF_VER} 2.7 2.6 2.5 2.4 2.3 2.2 for PY_VER in ${PREF_VER} 2.7 2.6 2.5 2.4 2.3 2.2
...@@ -24,5 +24,5 @@ then ...@@ -24,5 +24,5 @@ then
# prove the python version selected is as expected # prove the python version selected is as expected
${PYTHON} -c "import sys;print( 'Info: Python Version %r' % sys.version )" ${PYTHON} -c "import sys;print( 'Info: Python Version %r' % sys.version )"
else else
echo "Error: Cannot find python${PY_MAJ}.${PY_MIN} on the PATH" echo "Error: Cannot find python${PREF_VER} on the PATH"
fi fi
MAJOR=1 MAJOR=1
MINOR=7 MINOR=7
PATCH=0 PATCH=1
BUILD=0 BUILD=0
...@@ -59,10 +59,11 @@ install-1.6: ...@@ -59,10 +59,11 @@ install-1.6:
test: test-$(SVN_VER_MAJ_MIN) test: test-$(SVN_VER_MAJ_MIN)
test-1.4: test-1.4:
cd ..\Tests & $(MAKE) -f win32.mak SVN_VER_MAJ_MIN=1.4 cd ..\Tests & $(MAKE) -f win32.mak SVN_VER_MAJ_MIN=1.4 KNOWN_GOOD_VERSION=py$(PY_MAJ)-svn$(SVN_VER_MAJ_MIN)
test-1.5: test-1.5:
cd ..\Tests & $(MAKE) -f win32.mak SVN_VER_MAJ_MIN=1.5 cd ..\Tests & $(MAKE) -f win32.mak SVN_VER_MAJ_MIN=1.5 KNOWN_GOOD_VERSION=py$(PY_MAJ)-svn$(SVN_VER_MAJ_MIN)
test-1.6: test-1.6:
cd ..\Tests & $(MAKE) -f win32.mak SVN_VER_MAJ_MIN=1.6 cd ..\Tests & $(MAKE) -f win32.mak SVN_VER_MAJ_MIN=1.6 KNOWN_GOOD_VERSION=py$(PY_MAJ)-svn$(SVN_VER_MAJ_MIN)
...@@ -62,10 +62,10 @@ install-1.6: ...@@ -62,10 +62,10 @@ install-1.6:
test: test-$(SVN_VER_MAJ_MIN) test: test-$(SVN_VER_MAJ_MIN)
test-1.4: test-1.4:
cd ..\Tests & $(MAKE) -f win32.mak SVN_VER_MAJ_MIN=1.4 cd ..\Tests & $(MAKE) -f win32.mak SVN_VER_MAJ_MIN=1.4 KNOWN_GOOD_VERSION=py$(PY_MAJ)-svn$(SVN_VER_MAJ_MIN)
test-1.5: test-1.5:
cd ..\Tests & $(MAKE) -f win32.mak SVN_VER_MAJ_MIN=1.5 cd ..\Tests & $(MAKE) -f win32.mak SVN_VER_MAJ_MIN=1.5 KNOWN_GOOD_VERSION=py$(PY_MAJ)-svn$(SVN_VER_MAJ_MIN)
test-1.6: test-1.6:
cd ..\Tests & $(MAKE) -f win32.mak SVN_VER_MAJ_MIN=1.6 cd ..\Tests & $(MAKE) -f win32.mak SVN_VER_MAJ_MIN=1.6 KNOWN_GOOD_VERSION=py$(PY_MAJ)-svn$(SVN_VER_MAJ_MIN)
...@@ -177,6 +177,9 @@ the value 'client in use on another thread'. ...@@ -177,6 +177,9 @@ the value 'client in use on another thread'.
<p><a href="#pysvn_client_exception_style">exception_style</a> allows you to control the style of exception raised by pysvn. <p><a href="#pysvn_client_exception_style">exception_style</a> allows you to control the style of exception raised by pysvn.
</p> </p>
<p><a href="#pysvn_client_commit_info_style">commit_info_style</a> allows you to control the style of commit_info returned by pysvn.
</p>
<h4><a name="pysvn_client_exception_style"><a href="#pysvn_module">pysvn</a>.<a href="#pysvn_client">Client</a>.exception_style</a></h4> <h4><a name="pysvn_client_exception_style"><a href="#pysvn_module">pysvn</a>.<a href="#pysvn_client">Client</a>.exception_style</a></h4>
<p>exception_style is used to control how pysvn raises <a href="#pysvn_clienterror">ClientError</a> <p>exception_style is used to control how pysvn raises <a href="#pysvn_clienterror">ClientError</a>
exceptions. exceptions.
...@@ -189,6 +192,16 @@ for details of effect of the style on the exception raised. ...@@ -189,6 +192,16 @@ for details of effect of the style on the exception raised.
</p> </p>
<h4><a name="pysvn_client_commit_info_style"><a href="#pysvn_module">pysvn</a>.<a href="#pysvn_client">Client</a>.commit_info_style</a></h4>
<p>commit_info_style is used to control how pysvn return commit information.
</p>
<p>commit_info_style can be set to 0 or 1.
The default value, 0, makes pysvn return only the commit revision.
</p>
<p>When set to 1 pysvn returns a dictionary of commit information including date, author, revision and post_commit_err.
</p>
<h3><a name="pysvn_client_callbacks">Client callbacks</a></h3> <h3><a name="pysvn_client_callbacks">Client callbacks</a></h3>
<p>pysvn uses callback functions to allow for realtime feedback <p>pysvn uses callback functions to allow for realtime feedback
...@@ -1981,6 +1994,8 @@ revision. Set recurse to True to recursively update a directory's ...@@ -1981,6 +1994,8 @@ revision. Set recurse to True to recursively update a directory's
children. <span class="svn_1002000">Set ignore_externals to True to ignore externals definitions.</span> children. <span class="svn_1002000">Set ignore_externals to True to ignore externals definitions.</span>
</p> </p>
<div class="svn_1005000"> <div class="svn_1005000">
<p>path can be a single path string or a list of path strings.
</p>
<p>The depth can be used in place of recurse. depth is one of the pysvn.depth enums. <p>The depth can be used in place of recurse. depth is one of the pysvn.depth enums.
Use pysvn.depth.unknown to update all files and folders in the working copy honoring the current depths. Use pysvn.depth.unknown to update all files and folders in the working copy honoring the current depths.
Use pysvn.depth.infinity to upadate all files and folders adding any that are missing ignoring the current depths. Use pysvn.depth.infinity to upadate all files and folders adding any that are missing ignoring the current depths.
......
...@@ -161,6 +161,7 @@ class SvnCommand: ...@@ -161,6 +161,7 @@ class SvnCommand:
def initClient( self, config_dir ): def initClient( self, config_dir ):
self.client = pysvn.Client( config_dir ) self.client = pysvn.Client( config_dir )
self.client.exception_style = 1 self.client.exception_style = 1
self.client.commit_info_style = 1
self.client.callback_get_login = self.callback_getLogin self.client.callback_get_login = self.callback_getLogin
self.client.callback_get_log_message = self.callback_getLogMessage self.client.callback_get_log_message = self.callback_getLogMessage
self.client.callback_notify = self.callback_notify self.client.callback_notify = self.callback_notify
...@@ -367,9 +368,13 @@ class SvnCommand: ...@@ -367,9 +368,13 @@ class SvnCommand:
if msg == '': if msg == '':
msg = self.getLogMessage() msg = self.getLogMessage()
rev = self.client.checkin( positional_args, msg, recurse=recurse ) commit_info = self.client.checkin( positional_args, msg, recurse=recurse )
rev = commit_info["revision"]
self.printNotifyMessages() self.printNotifyMessages()
if commit_info['post_commit_err'] is not None:
print( commit_info['post_commit_err'] )
if rev is None: if rev is None:
print( 'Nothing to commit' ) print( 'Nothing to commit' )
elif rev.number > 0: elif rev.number > 0:
...@@ -377,6 +382,7 @@ class SvnCommand: ...@@ -377,6 +382,7 @@ class SvnCommand:
else: else:
print( 'Commit failed' ) print( 'Commit failed' )
cmd_commit = cmd_checkin cmd_commit = cmd_checkin
cmd_ci = cmd_checkin cmd_ci = cmd_checkin
......
...@@ -63,7 +63,8 @@ and <a href="http://www.jrsoftware.org/">INNO</a> 4.0.10 to create the installat ...@@ -63,7 +63,8 @@ and <a href="http://www.jrsoftware.org/">INNO</a> 4.0.10 to create the installat
<h3>Building on unix and Mac OS X systems.</h3> <h3>Building on unix and Mac OS X systems.</h3>
<ol> <ol>
<li>Install subversion</li> <li>Install subversion.
<br />When installing from packages you will need to install the <i>devel</i> packages as well. For example on Fedora/Redhat subversion-devel, apr-devel, apr-util-devel and their dependancies.</li>
<li>Get the pysvn source code</li> <li>Get the pysvn source code</li>
<li>For Python 2 builds: <code>tar xzf pycxx-5.5.0.tar.gz</code> into <em>extdir</em>/Import if not using a source kit</li> <li>For Python 2 builds: <code>tar xzf pycxx-5.5.0.tar.gz</code> into <em>extdir</em>/Import if not using a source kit</li>
<li>For Python 3 builds: <code>tar xzf pycxx-6.0.0.tar.gz</code> into <em>extdir</em>/Import if not using a source kit</li> <li>For Python 3 builds: <code>tar xzf pycxx-6.0.0.tar.gz</code> into <em>extdir</em>/Import if not using a source kit</li>
......
This diff is collapsed.
//-----------------------------------------------------------------------------
//
// Copyright (c) 1998 - 2007, The Regents of the University of California
// Produced at the Lawrence Livermore National Laboratory
// All rights reserved.
//
// This file is part of PyCXX. For details,see http://cxx.sourceforge.net/. The
// full copyright notice is contained in the file COPYRIGHT located at the root
// of the PyCXX distribution.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// - Redistributions of source code must retain the above copyright notice,
// this list of conditions and the disclaimer below.
// - Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the disclaimer (as noted below) in the
// documentation and/or materials provided with the distribution.
// - Neither the name of the UC/LLNL nor the names of its contributors may be
// used to endorse or promote products derived from this software without
// specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OF THE UNIVERSITY OF
// CALIFORNIA, THE U.S. DEPARTMENT OF ENERGY OR CONTRIBUTORS BE LIABLE FOR
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
// DAMAGE.
//
//-----------------------------------------------------------------------------
#ifndef __PyCXX_version_hxx__
#define __PyCXX_version_hxx__
#define PYCXX_VERSION_MAJOR 5
#define PYCXX_VERSION_MINOR 5
#define PYCXX_VERSION_PATCH 0
#define PYCXX_MAKEVERSION( major, minor, patch ) ((major<<16)|(minor<<8)|(patch))
#define PYCXX_VERSION PYCXX_MAKEVERSION( PYCXX_VERSION_MAJOR, PYCXX_VERSION_MINOR, PYCXX_VERSION_PATCH )
#endif
//-----------------------------------------------------------------------------
//
// Copyright (c) 1998 - 2007, The Regents of the University of California
// Produced at the Lawrence Livermore National Laboratory
// All rights reserved.
//
// This file is part of PyCXX. For details,see http://cxx.sourceforge.net/. The
// full copyright notice is contained in the file COPYRIGHT located at the root
// of the PyCXX distribution.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// - Redistributions of source code must retain the above copyright notice,
// this list of conditions and the disclaimer below.
// - Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the disclaimer (as noted below) in the
// documentation and/or materials provided with the distribution.
// - Neither the name of the UC/LLNL nor the names of its contributors may be
// used to endorse or promote products derived from this software without
// specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OF THE UNIVERSITY OF
// CALIFORNIA, THE U.S. DEPARTMENT OF ENERGY OR CONTRIBUTORS BE LIABLE FOR
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
// DAMAGE.
//
//-----------------------------------------------------------------------------
import os, sys
from distutils.core import setup, Extension
support_dir = os.path.normpath(
os.path.join(
sys.prefix,
'share',
'python%d.%d' % (sys.version_info[0],sys.version_info[1]),
'CXX') )
if os.name == 'posix':
CXX_libraries = ['stdc++','m']
else:
CXX_libraries = []
setup (name = "CXXDemo",
version = "5.1",
maintainer = "Barry Scott",
maintainer_email = "barry-scott@users.sourceforge.net",
description = "Demo of facility for extending Python with C++",
url = "http://cxx.sourceforge.net",
packages = ['CXX'],
package_dir = {'CXX': '.'},
ext_modules = [
Extension('CXX.example',
sources = ['example.cxx',
'range.cxx',
'rangetest.cxx',
os.path.join(support_dir,'cxxsupport.cxx'),
os.path.join(support_dir,'cxx_extensions.cxx'),
os.path.join(support_dir,'IndirectPythonInterface.cxx'),
os.path.join(support_dir,'cxxextensions.c')
],
)
]
)
//
// Copyright (c) 2008 Barry A. Scott
//
//
// simple_moduile.cxx
//
// This module defines a single function.
//
#ifdef _MSC_VER
// disable warning C4786: symbol greater than 255 character,
// nessesary to ignore as <map> causes lots of warning
#pragma warning(disable: 4786)
#endif
#include "CXX/Objects.hxx"
#include "CXX/Extensions.hxx"
#include <assert.h>
class cls: public Py::PythonExtension< cls >
{
public:
cls()
{
}
virtual ~cls()
{
}
static void init_type(void)
{
behaviors().name( "cls" );
behaviors().doc( "documentation for cls class" );
behaviors().supportGetattr();
add_varargs_method( "cls_func", &cls::cls_func );
}
// override functions from PythonExtension
virtual Py::Object getattr( const char *name )
{
return getattr_methods( name );
}
Py::Object cls_func( const Py::Tuple &args )
{
std::cout << "Called with " << args.length() << " normal arguments." << std::endl;
return Py::None();
}
};
class simple_module : public Py::ExtensionModule<simple_module>
{
public:
simple_module()
: Py::ExtensionModule<simple_module>( "simple" ) // this must be name of the file on disk e.g. simple.so or simple.pyd
{
cls::init_type();
add_varargs_method("cls", &simple_module::factory_cls, "documentation for cls()");
add_keyword_method("func", &simple_module::func, "documentation for func()");
// after initialize the moduleDictionary with exist
initialize( "documentation for the simple module" );
Py::Dict d( moduleDictionary() );
d["var"] = Py::String( "var value" );
}
virtual ~simple_module()
{}
private:
Py::Object func( const Py::Tuple &args, const Py::Dict &kws )
{
std::cout << "Called with " << args.length() << " normal arguments." << std::endl;
Py::List names( kws.keys() );
std::cout << "and with " << names.length() << " keyword arguments:" << std::endl;
for( Py::List::size_type i=0; i< names.length(); i++ )
{
Py::String name( names[i] );
std::cout << " " << name << std::endl;
}
return Py::None();
}
Py::Object factory_cls( const Py::Tuple &rargs )
{
return Py::asObject( new cls );
}
};
extern "C" void initsimple()
{
#if defined(PY_WIN32_DELAYLOAD_PYTHON_DLL)
Py::InitialisePythonIndirectPy::Interface();
#endif
static simple_module* simple = new simple_module;
}
// symbol required for the debug version
extern "C" void initsimple_d()
{
initsimple();
}
import simple
simple.func()
simple.func( 4, 5 )
simple.func( 4, 5, name=6, value=7 )
cls = simple.cls()
cls.cls_func()
cls.cls_func( 4 )
This diff is collapsed.
setlocal
set BUILD_TYPE=Release
set ACTION=
if "%1" == "/debug" set BUILD_TYPE=Debug
if "%2" == "/debug" set BUILD_TYPE=Debug
if "%1" == "/clean" set ACTION=/clean
if "%2" == "/clean" set ACTION=/clean
setlocal
call setup-msvc6
echo on
msdev example_py22.dsw /make "example - Win32 %BUILD_TYPE%" %ACTION%
msdev example_py23.dsw /make "example - Win32 %BUILD_TYPE%" %ACTION%
msdev example_py23.dsw /make "pycxx_iter - Win32 %BUILD_TYPE%" %ACTION%
endlocal
setlocal
if "%ACTION%" == "" set ACTION=/build
call setup-msvc71
echo on
devenv example_py24.sln %ACTION% "%BUILD_TYPE%" /project "example"
devenv example_py24.sln %ACTION% "%BUILD_TYPE%" /project "pycxx_iter"
devenv example_py24.sln %ACTION% "%BUILD_TYPE%" /project "simple"
devenv example_py25.sln %ACTION% "%BUILD_TYPE%" /project "example"
devenv example_py25.sln %ACTION% "%BUILD_TYPE%" /project "pycxx_iter"
devenv example_py25.sln %ACTION% "%BUILD_TYPE%" /project "simple"
devenv example_py26.sln %ACTION% "%BUILD_TYPE%" /project "example"
devenv example_py26.sln %ACTION% "%BUILD_TYPE%" /project "pycxx_iter"
devenv example_py26.sln %ACTION% "%BUILD_TYPE%" /project "simple"
endlocal
endlocal
#
# Build the example on Mac OS X for fink version 2.4
#
CCC=MACOSX_DEPLOYMENT_TARGET=10.3 g++ -c
CCCFLAGS=-g -fPIC -Wno-long-double -I/sw/include/python2.4 -I.
LDSHARED=MACOSX_DEPLOYMENT_TARGET=10.3 g++ -g -L/sw/lib -bundle -undefined dynamic_lookup
LDLIBS=-flat_namespace
PYTHON=/sw/bin/python2.4
include example_common.mak
#
# Build the example on Mac OS X for fink version 2.4
#
CCC=MACOSX_DEPLOYMENT_TARGET=10.4 g++ -c
CCCFLAGS=-g -fPIC -Wno-long-double -I/sw/include/python2.4 -I.
LDSHARED=MACOSX_DEPLOYMENT_TARGET=10.4 g++ -g -L/sw/lib -bundle -undefined dynamic_lookup
LDLIBS=-flat_namespace
PYTHON=/sw/bin/python2.4
include example_common.mak
#
# Build the example on Mac OS X for fink version 2.4
#
CCC=MACOSX_DEPLOYMENT_TARGET=10.3 g++ -c
CCCFLAGS=-g -fPIC -Wno-long-double -I/sw/include/python2.4 -I.
LDSHARED=MACOSX_DEPLOYMENT_TARGET=10.3 g++ -g -L/sw/lib -bundle -undefined dynamic_lookup
LDLIBS=-flat_namespace
PYTHON=/sw/bin/python2.4
include example_common.mak
#
# BUild the example on FreeBSD for version 1.5.2
#
CCC=g++ -c
CCCFLAGS=-fPIC -I/usr/local/include/python1.5 -I.
LDSHARED=g++ -shared
LDLIBS=
PYTHON=/usr/local/bin/python1.5
include example_common.mak
#
# BUild the example on FreeBSD for version 2.2a1
#
CCC=g++ -c
CCCFLAGS=-fPIC -I/usr/local/include/python2.2 -I.
LDSHARED=g++ -shared
LDLIBS=
PYTHON=/usr/local/bin/python2.2
include example_common.mak
#
# BUild the example on Linux for version 1.5.2
#
CCC=g++ -c
CCCFLAGS=-fPIC -I/usr/include/python1.5 -I.
LDSHARED=g++ -shared
LDLIBS=
PYTHON=python
include example_common.mak
# Microsoft Developer Studio Project File - Name="example" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
CFG=example - Win32 Release
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "example_py15.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "example_py15.mak" CFG="example - Win32 Release"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "example - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
!MESSAGE "example - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
MTL=midl.exe
RSC=rc.exe
!IF "$(CFG)" == "example - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "pyds15"
# PROP Intermediate_Dir "Debug15"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
# ADD CPP /nologo /MDd /W3 /GR /GX /Zi /Od /I "C:\Program Files\Python\include" /I "." /I "Demo" /D "WIN32" /D "_WINDOWS" /D "DEBUG" /D "_DEBUG" /FR /YX /FD /c /Tp
# ADD BASE MTL /nologo /mktyplib203 /o "NUL" /win32
# ADD MTL /nologo /mktyplib203 /o "NUL" /win32
# ADD BASE RSC /l 0x409
# ADD RSC /l 0x409
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
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 python15_d.lib /nologo /subsystem:windows /dll /pdb:"sept" /debug /machine:I386 /out:"pyds15\example_d.pyd" /libpath:"C:\Program Files\Python\libs" /export:initexample
# SUBTRACT LINK32 /pdb:none
!ELSEIF "$(CFG)" == "example - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "pyds15"
# PROP Intermediate_Dir "Release15"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
# ADD CPP /nologo /MD /W3 /GR /GX /Zi /Od /Ob2 /I "C:\Program Files\Python\include" /I "." /I "Demo" /D "WIN32" /D "_WINDOWS" /D "NDEBUG" /FR /YX /FD /c /Tp
# ADD BASE MTL /nologo /mktyplib203 /o "NUL" /win32
# ADD MTL /nologo /mktyplib203 /o "NUL" /win32
# ADD BASE RSC /l 0x409
# ADD RSC /l 0x409
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
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 python15.lib /nologo /subsystem:windows /dll /debug /machine:I386 /out:"pyds15\example.pyd" /libpath:"C:\Program Files\Python\libs" /export:initexample
!ENDIF
# Begin Target
# Name "example - Win32 Debug"
# Name "example - Win32 Release"
# Begin Source File