Staging
v0.5.1
https://github.com/python/cpython
Revision 2ee5bae04a9213216c56af996323bfb5e133c34b authored by Thomas Heller on 03 February 2005, 20:37:04 UTC, committed by Thomas Heller on 03 February 2005, 20:37:04 UTC
for Python 2.4 caused a segfault when post_install_script was used.

The reason was that the file handle passed to PyRun_SimpleFile() was
created with MSVCRT.DLL, but Python 2.4 uses MSVCR71.DLL.

So, I replaced PyRun_SimpleFile() with PyRun_SimpleString().  The
segfault is gone, but the output of the postinstall script doesn't
show up, because still freopen() from MSVCRT is used.
1 parent 698fcf4
Raw File
Tip revision: 2ee5bae04a9213216c56af996323bfb5e133c34b authored by Thomas Heller on 03 February 2005, 20:37:04 UTC
Running a bdist_wininst installer, built with Python 2.3, installing
Tip revision: 2ee5bae
make_versioninfo.vcproj
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
	ProjectType="Visual C++"
	Version="7.10"
	Name="make_versioninfo"
	RootNamespace="make_versioninfo"
	SccProjectName="make_versioninfo"
	SccLocalPath="..">
	<Platforms>
		<Platform
			Name="Win32"/>
	</Platforms>
	<Configurations>
		<Configuration
			Name="Release|Win32"
			OutputDirectory=".\."
			IntermediateDirectory=".\x86-temp-release\make_versioninfo"
			ConfigurationType="1"
			UseOfMFC="0"
			ATLMinimizesCRunTimeLibraryUsage="FALSE"
			CharacterSet="2">
			<Tool
				Name="VCCLCompilerTool"
				Optimization="2"
				InlineFunctionExpansion="1"
				AdditionalIncludeDirectories="..\Include,..\PC"
				PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
				StringPooling="TRUE"
				RuntimeLibrary="2"
				EnableFunctionLevelLinking="TRUE"
				UsePrecompiledHeader="2"
				PrecompiledHeaderFile=".\x86-temp-release\make_versioninfo/make_versioninfo.pch"
				AssemblerListingLocation=".\x86-temp-release\make_versioninfo/"
				ObjectFile=".\x86-temp-release\make_versioninfo/"
				ProgramDataBaseFileName=".\x86-temp-release\make_versioninfo/"
				WarningLevel="3"
				SuppressStartupBanner="TRUE"
				DebugInformationFormat="3"
				CompileAs="0"/>
			<Tool
				Name="VCCustomBuildTool"
				CommandLine=".\make_versioninfo.exe &gt;..\PC\pythonnt_rc.h
"
				Outputs="..\PC\pythonnt_rc.h"/>
			<Tool
				Name="VCLinkerTool"
				AdditionalDependencies="odbccp32.lib"
				OutputFile=".\./make_versioninfo.exe"
				LinkIncremental="1"
				SuppressStartupBanner="TRUE"
				GenerateDebugInformation="TRUE"
				ProgramDatabaseFile=".\./make_versioninfo.pdb"
				SubSystem="1"
				BaseAddress="0x1d000000"
				TargetMachine="1"/>
			<Tool
				Name="VCMIDLTool"
				TypeLibraryName=".\./make_versioninfo.tlb"
				HeaderFileName=""/>
			<Tool
				Name="VCPostBuildEventTool"
				CommandLine="$(TargetFileName) &gt; ..\PC\python_nt.h"/>
			<Tool
				Name="VCPreBuildEventTool"/>
			<Tool
				Name="VCPreLinkEventTool"/>
			<Tool
				Name="VCResourceCompilerTool"
				PreprocessorDefinitions="NDEBUG"
				Culture="1033"/>
			<Tool
				Name="VCWebServiceProxyGeneratorTool"/>
			<Tool
				Name="VCXMLDataGeneratorTool"/>
			<Tool
				Name="VCWebDeploymentTool"/>
			<Tool
				Name="VCManagedWrapperGeneratorTool"/>
			<Tool
				Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
		</Configuration>
		<Configuration
			Name="Debug|Win32"
			OutputDirectory=".\."
			IntermediateDirectory=".\x86-temp-debug\make_versioninfo"
			ConfigurationType="1"
			UseOfMFC="0"
			ATLMinimizesCRunTimeLibraryUsage="FALSE"
			CharacterSet="2">
			<Tool
				Name="VCCLCompilerTool"
				Optimization="0"
				AdditionalIncludeDirectories="..\Include,..\PC"
				PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
				RuntimeLibrary="3"
				UsePrecompiledHeader="2"
				PrecompiledHeaderFile=".\x86-temp-debug\make_versioninfo/make_versioninfo.pch"
				AssemblerListingLocation=".\x86-temp-debug\make_versioninfo/"
				ObjectFile=".\x86-temp-debug\make_versioninfo/"
				ProgramDataBaseFileName=".\x86-temp-debug\make_versioninfo/"
				BrowseInformation="1"
				WarningLevel="3"
				SuppressStartupBanner="TRUE"
				DebugInformationFormat="3"
				CompileAs="0"/>
			<Tool
				Name="VCCustomBuildTool"
				CommandLine=".\make_versioninfo_d.exe &gt;..\PC\pythonnt_rc_d.h
"
				Outputs="..\PC\pythonnt_rc_d.h"/>
			<Tool
				Name="VCLinkerTool"
				AdditionalDependencies="odbccp32.lib"
				OutputFile="./make_versioninfo_d.exe"
				LinkIncremental="1"
				SuppressStartupBanner="TRUE"
				GenerateDebugInformation="TRUE"
				ProgramDatabaseFile=".\./make_versioninfo_d.pdb"
				SubSystem="1"
				BaseAddress="0x1d000000"
				TargetMachine="1"/>
			<Tool
				Name="VCMIDLTool"
				TypeLibraryName=".\./make_versioninfo.tlb"
				HeaderFileName=""/>
			<Tool
				Name="VCPostBuildEventTool"
				CommandLine="$(TargetFileName) &gt; ..\PC\python_nt_d.h"/>
			<Tool
				Name="VCPreBuildEventTool"/>
			<Tool
				Name="VCPreLinkEventTool"/>
			<Tool
				Name="VCResourceCompilerTool"
				PreprocessorDefinitions="_DEBUG"
				Culture="1033"
				AdditionalIncludeDirectories="..\Include"/>
			<Tool
				Name="VCWebServiceProxyGeneratorTool"/>
			<Tool
				Name="VCXMLDataGeneratorTool"/>
			<Tool
				Name="VCWebDeploymentTool"/>
			<Tool
				Name="VCManagedWrapperGeneratorTool"/>
			<Tool
				Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
		</Configuration>
	</Configurations>
	<References>
	</References>
	<Files>
		<File
			RelativePath="..\PC\make_versioninfo.c">
			<FileConfiguration
				Name="Release|Win32">
				<Tool
					Name="VCCLCompilerTool"
					Optimization="2"
					AdditionalIncludeDirectories=""
					PreprocessorDefinitions=""/>
			</FileConfiguration>
			<FileConfiguration
				Name="Debug|Win32">
				<Tool
					Name="VCCLCompilerTool"
					Optimization="0"
					AdditionalIncludeDirectories=""
					PreprocessorDefinitions=""
					BrowseInformation="1"/>
			</FileConfiguration>
		</File>
	</Files>
	<Globals>
	</Globals>
</VisualStudioProject>
back to top