Port to Python 2.5. Drop .DEF file. Change output file names to .pyd.

This commit is contained in:
Martin v. Löwis 2006-04-22 15:19:54 +00:00
parent 3c134a2046
commit 449be38305
3 changed files with 7 additions and 12 deletions

View File

@ -13,7 +13,7 @@ static PyMethodDef example_methods[] = {
{NULL, NULL}
};
void
PyMODINIT_FUNC
initexample(void)
{
Py_InitModule("example", example_methods);

View File

@ -1,2 +0,0 @@
EXPORTS
initexample

View File

@ -39,12 +39,12 @@
<Tool
Name="VCLinkerTool"
AdditionalOptions="/export:initexample"
AdditionalDependencies="odbc32.lib odbccp32.lib python24.lib"
OutputFile=".\Release/example.dll"
AdditionalDependencies="odbc32.lib odbccp32.lib python25.lib"
OutputFile=".\Release/example.pyd"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
AdditionalLibraryDirectories="..\PCbuild"
ModuleDefinitionFile=".\example.def"
ModuleDefinitionFile=""
ProgramDatabaseFile=".\Release/example.pdb"
SubSystem="2"
ImportLibrary=".\Release/example.lib"
@ -105,12 +105,12 @@
<Tool
Name="VCLinkerTool"
AdditionalOptions="/export:initexample"
AdditionalDependencies="odbc32.lib odbccp32.lib python24_d.lib"
OutputFile=".\Debug/example_d.dll"
AdditionalDependencies="odbc32.lib odbccp32.lib python25_d.lib"
OutputFile=".\Debug/example_d.pyd"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
AdditionalLibraryDirectories="..\PCbuild"
ModuleDefinitionFile=".\example.def"
ModuleDefinitionFile=""
GenerateDebugInformation="TRUE"
ProgramDatabaseFile=".\Debug/example_d.pdb"
SubSystem="2"
@ -171,9 +171,6 @@
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;$(NoInherit)"/>
</FileConfiguration>
</File>
<File
RelativePath="example.def">
</File>
</Filter>
<Filter
Name="Header Files"