Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1a494bdf
Commit
1a494bdf
authored
Apr 04, 2006
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add sqlite3 to the Windows build process.
parent
c95dd948
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
318 additions
and
1 deletion
+318
-1
PCbuild/_sqlite3.vcproj
PCbuild/_sqlite3.vcproj
+286
-0
PCbuild/pcbuild.sln
PCbuild/pcbuild.sln
+13
-0
PCbuild/readme.txt
PCbuild/readme.txt
+9
-0
Tools/buildbot/external.bat
Tools/buildbot/external.bat
+4
-0
Tools/msi/msi.py
Tools/msi/msi.py
+6
-1
No files found.
PCbuild/_sqlite3.vcproj
0 → 100644
View file @
1a494bdf
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType=
"Visual C++"
Version=
"7.10"
Name=
"_sqlite3"
ProjectGUID=
"{2FF0A312-22F9-4C34-B070-842916DE27A9}"
SccProjectName=
"_sqlite3"
SccLocalPath=
".."
>
<Platforms>
<Platform
Name=
"Win32"
/>
</Platforms>
<Configurations>
<Configuration
Name=
"Debug|Win32"
OutputDirectory=
".\."
IntermediateDirectory=
".\x86-temp-debug\_sqlite3"
ConfigurationType=
"2"
UseOfMFC=
"0"
ATLMinimizesCRunTimeLibraryUsage=
"FALSE"
>
<Tool
Name=
"VCCLCompilerTool"
Optimization=
"0"
AdditionalIncludeDirectories=
"..\Include;..\PC;..\..\sqlite-source-3.3.4"
PreprocessorDefinitions=
"_DEBUG;WIN32;_WINDOWS;PYSQLITE_VERSION="2.1.3""
RuntimeLibrary=
"3"
UsePrecompiledHeader=
"2"
WarningLevel=
"3"
SuppressStartupBanner=
"TRUE"
DebugInformationFormat=
"3"
CompileAs=
"0"
/>
<Tool
Name=
"VCCustomBuildTool"
/>
<Tool
Name=
"VCLinkerTool"
OutputFile=
"./_sqlite3_d.pyd"
LinkIncremental=
"1"
SuppressStartupBanner=
"TRUE"
IgnoreDefaultLibraryNames=
""
GenerateDebugInformation=
"TRUE"
ProgramDatabaseFile=
".\./_sqlite3_d.pdb"
SubSystem=
"2"
BaseAddress=
"0x1e180000"
ImportLibrary=
".\./_sqlite3_d.lib"
TargetMachine=
"1"
/>
<Tool
Name=
"VCMIDLTool"
/>
<Tool
Name=
"VCPostBuildEventTool"
/>
<Tool
Name=
"VCPreBuildEventTool"
/>
<Tool
Name=
"VCPreLinkEventTool"
/>
<Tool
Name=
"VCResourceCompilerTool"
/>
<Tool
Name=
"VCWebServiceProxyGeneratorTool"
/>
<Tool
Name=
"VCXMLDataGeneratorTool"
/>
<Tool
Name=
"VCWebDeploymentTool"
/>
<Tool
Name=
"VCManagedWrapperGeneratorTool"
/>
<Tool
Name=
"VCAuxiliaryManagedWrapperGeneratorTool"
/>
</Configuration>
<Configuration
Name=
"Release|Win32"
OutputDirectory=
".\."
IntermediateDirectory=
".\x86-temp-release\_sqlite3"
ConfigurationType=
"2"
UseOfMFC=
"0"
ATLMinimizesCRunTimeLibraryUsage=
"FALSE"
>
<Tool
Name=
"VCCLCompilerTool"
Optimization=
"2"
InlineFunctionExpansion=
"1"
AdditionalIncludeDirectories=
"..\Include;..\PC;..\..\sqlite-source-3.3.4"
PreprocessorDefinitions=
"NDEBUG;WIN32;_WINDOWS;PYSQLITE_VERSION=\"2.1.3\""
StringPooling=
"TRUE"
RuntimeLibrary=
"2"
EnableFunctionLevelLinking=
"TRUE"
UsePrecompiledHeader=
"2"
WarningLevel=
"3"
SuppressStartupBanner=
"TRUE"
DebugInformationFormat=
"3"
CompileAs=
"0"
/>
<Tool
Name=
"VCCustomBuildTool"
/>
<Tool
Name=
"VCLinkerTool"
AdditionalDependencies=
"..\..\sqlite-source-3.3.4\sqlite3.lib"
OutputFile=
"./_sqlite3.pyd"
LinkIncremental=
"1"
SuppressStartupBanner=
"TRUE"
IgnoreDefaultLibraryNames=
""
GenerateDebugInformation=
"TRUE"
ProgramDatabaseFile=
".\./_sqlite3.pdb"
SubSystem=
"2"
BaseAddress=
"0x1e180000"
ImportLibrary=
".\./_sqlite3.lib"
TargetMachine=
"1"
/>
<Tool
Name=
"VCMIDLTool"
/>
<Tool
Name=
"VCPostBuildEventTool"
/>
<Tool
Name=
"VCPreBuildEventTool"
/>
<Tool
Name=
"VCPreLinkEventTool"
/>
<Tool
Name=
"VCResourceCompilerTool"
/>
<Tool
Name=
"VCWebServiceProxyGeneratorTool"
/>
<Tool
Name=
"VCXMLDataGeneratorTool"
/>
<Tool
Name=
"VCWebDeploymentTool"
/>
<Tool
Name=
"VCManagedWrapperGeneratorTool"
/>
<Tool
Name=
"VCAuxiliaryManagedWrapperGeneratorTool"
/>
</Configuration>
<Configuration
Name=
"ReleaseItanium|Win32"
OutputDirectory=
"./."
IntermediateDirectory=
".\ia64-temp-release\_sqlite3"
ConfigurationType=
"2"
UseOfMFC=
"0"
ATLMinimizesCRunTimeLibraryUsage=
"FALSE"
>
<Tool
Name=
"VCCLCompilerTool"
AdditionalOptions=
" /USECL:MS_ITANIUM"
Optimization=
"2"
InlineFunctionExpansion=
"1"
AdditionalIncludeDirectories=
"{MSSDKPATH}\include\Win64\atl;{MSSDKPATH}\include\Win64\crt;{MSSDKPATH}\include\Win64\crt\sys;{MSSDKPATH}\include\Win64\mfc;..\Include;..\PC;..\..\sqlite-source-3.3.4"
PreprocessorDefinitions=
"NDEBUG;WIN32;_WINDOWS;PYSQLITE_VERSION="2.1.3""
StringPooling=
"TRUE"
BasicRuntimeChecks=
"0"
RuntimeLibrary=
"2"
BufferSecurityCheck=
"FALSE"
EnableFunctionLevelLinking=
"TRUE"
UsePrecompiledHeader=
"2"
WarningLevel=
"3"
SuppressStartupBanner=
"TRUE"
Detect64BitPortabilityProblems=
"TRUE"
DebugInformationFormat=
"3"
CompileAs=
"0"
/>
<Tool
Name=
"VCCustomBuildTool"
/>
<Tool
Name=
"VCLinkerTool"
AdditionalOptions=
" /MACHINE:IA64 /USELINK:MS_SDK"
OutputFile=
"./_sqlite3.pyd"
LinkIncremental=
"1"
SuppressStartupBanner=
"TRUE"
IgnoreDefaultLibraryNames=
""
GenerateDebugInformation=
"TRUE"
ProgramDatabaseFile=
".\./_sqlite3.pdb"
SubSystem=
"2"
BaseAddress=
"0x1e180000"
ImportLibrary=
".\./_sqlite3.lib"
TargetMachine=
"0"
/>
<Tool
Name=
"VCMIDLTool"
/>
<Tool
Name=
"VCPostBuildEventTool"
/>
<Tool
Name=
"VCPreBuildEventTool"
/>
<Tool
Name=
"VCPreLinkEventTool"
/>
<Tool
Name=
"VCResourceCompilerTool"
/>
<Tool
Name=
"VCWebServiceProxyGeneratorTool"
/>
<Tool
Name=
"VCXMLDataGeneratorTool"
/>
<Tool
Name=
"VCWebDeploymentTool"
/>
<Tool
Name=
"VCManagedWrapperGeneratorTool"
/>
<Tool
Name=
"VCAuxiliaryManagedWrapperGeneratorTool"
/>
</Configuration>
<Configuration
Name=
"ReleaseAMD64|Win32"
OutputDirectory=
"."
IntermediateDirectory=
"amd64-temp-release\_sqlite3"
ConfigurationType=
"2"
UseOfMFC=
"0"
ATLMinimizesCRunTimeLibraryUsage=
"FALSE"
>
<Tool
Name=
"VCCLCompilerTool"
AdditionalOptions=
" /USECL:MS_OPTERON"
Optimization=
"2"
InlineFunctionExpansion=
"1"
AdditionalIncludeDirectories=
"{MSSDKPATH}\include\Win64\atl\amd64;{MSSDKPATH}\include\Win64\crt\amd64;{MSSDKPATH}\include\Win64\crt\amd64\sys;{MSSDKPATH}\include\Win64\mfc\amd64;..\Include;..\PC;..\..\sqlite-source-3.3.4"
PreprocessorDefinitions=
"NDEBUG;WIN32;_WINDOWS;PYSQLITE_VERSION="2.1.3""
StringPooling=
"TRUE"
BasicRuntimeChecks=
"0"
RuntimeLibrary=
"2"
BufferSecurityCheck=
"FALSE"
EnableFunctionLevelLinking=
"TRUE"
UsePrecompiledHeader=
"2"
WarningLevel=
"3"
SuppressStartupBanner=
"TRUE"
Detect64BitPortabilityProblems=
"TRUE"
DebugInformationFormat=
"3"
CompileAs=
"0"
/>
<Tool
Name=
"VCCustomBuildTool"
/>
<Tool
Name=
"VCLinkerTool"
AdditionalOptions=
" /MACHINE:AMD64 /USELINK:MS_SDK"
OutputFile=
"./_sqlite3.pyd"
LinkIncremental=
"1"
SuppressStartupBanner=
"TRUE"
IgnoreDefaultLibraryNames=
""
GenerateDebugInformation=
"TRUE"
ProgramDatabaseFile=
".\./_sqlite3.pdb"
SubSystem=
"2"
BaseAddress=
"0x1e180000"
ImportLibrary=
".\./_sqlite3.lib"
TargetMachine=
"0"
/>
<Tool
Name=
"VCMIDLTool"
/>
<Tool
Name=
"VCPostBuildEventTool"
/>
<Tool
Name=
"VCPreBuildEventTool"
/>
<Tool
Name=
"VCPreLinkEventTool"
/>
<Tool
Name=
"VCResourceCompilerTool"
/>
<Tool
Name=
"VCWebServiceProxyGeneratorTool"
/>
<Tool
Name=
"VCXMLDataGeneratorTool"
/>
<Tool
Name=
"VCWebDeploymentTool"
/>
<Tool
Name=
"VCManagedWrapperGeneratorTool"
/>
<Tool
Name=
"VCAuxiliaryManagedWrapperGeneratorTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<File
RelativePath=
"..\Modules\_sqlite\adapters.c"
>
</File>
<File
RelativePath=
"..\Modules\_sqlite\cache.c"
>
</File>
<File
RelativePath=
"..\Modules\_sqlite\connection.c"
>
</File>
<File
RelativePath=
"..\Modules\_sqlite\converters.c"
>
</File>
<File
RelativePath=
"..\Modules\_sqlite\cursor.c"
>
</File>
<File
RelativePath=
"..\Modules\_sqlite\microprotocols.c"
>
</File>
<File
RelativePath=
"..\Modules\_sqlite\module.c"
>
</File>
<File
RelativePath=
"..\Modules\_sqlite\prepare_protocol.c"
>
</File>
<File
RelativePath=
"..\Modules\_sqlite\row.c"
>
</File>
<File
RelativePath=
"..\Modules\_sqlite\statement.c"
>
</File>
<File
RelativePath=
"..\Modules\_sqlite\util.c"
>
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
PCbuild/pcbuild.sln
View file @
1a494bdf
...
...
@@ -99,6 +99,11 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_ctypes_test", "_ctypes_tes
{F22F40F4-D318-40DC-96B3-88DC81CE0894} = {F22F40F4-D318-40DC-96B3-88DC81CE0894}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_sqlite3", "_sqlite3.vcproj", "{2FF0A312-22F9-4C34-B070-842916DE27A9}"
ProjectSection(ProjectDependencies) = postProject
{CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} = {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26}
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfiguration) = preSolution
Debug = Debug
...
...
@@ -261,6 +266,14 @@ Global
{8CF334D9-4F82-42EB-97AF-83592C5AFD2F}.Release.Build.0 = Release|Win32
{8CF334D9-4F82-42EB-97AF-83592C5AFD2F}.ReleaseAMD64.ActiveCfg = ReleaseAMD64|Win32
{8CF334D9-4F82-42EB-97AF-83592C5AFD2F}.ReleaseItanium.ActiveCfg = ReleaseItanium|Win32
{2FF0A312-22F9-4C34-B070-842916DE27A9}.Debug.ActiveCfg = Debug|Win32
{2FF0A312-22F9-4C34-B070-842916DE27A9}.Debug.Build.0 = Debug|Win32
{2FF0A312-22F9-4C34-B070-842916DE27A9}.Release.ActiveCfg = Release|Win32
{2FF0A312-22F9-4C34-B070-842916DE27A9}.Release.Build.0 = Release|Win32
{2FF0A312-22F9-4C34-B070-842916DE27A9}.ReleaseAMD64.ActiveCfg = ReleaseAMD64|Win32
{2FF0A312-22F9-4C34-B070-842916DE27A9}.ReleaseAMD64.Build.0 = ReleaseAMD64|Win32
{2FF0A312-22F9-4C34-B070-842916DE27A9}.ReleaseItanium.ActiveCfg = ReleaseItanium|Win32
{2FF0A312-22F9-4C34-B070-842916DE27A9}.ReleaseItanium.Build.0 = ReleaseItanium|Win32
EndGlobalSection
GlobalSection(SolutionItems) = postSolution
..\Modules\getbuildinfo.c = ..\Modules\getbuildinfo.c
...
...
PCbuild/readme.txt
View file @
1a494bdf
...
...
@@ -214,6 +214,15 @@ _bsddb
target ("Release IA64" for Itanium, "Release AMD64" for AMD64), e.g.
devenv db-4.4.20\build_win32\Berkeley_DB.sln /build "Release AMD64" /project db_static /useenv
_sqlite3
Python wrapper for SQLite library.
Get the source code through
svn export http://svn.python.org/projects/external/sqlite-source-3.3.4
To use the extension module in a Python build tree, copy sqlite3.dll into
the PCbuild folder.
_ssl
Python wrapper for the secure sockets library.
...
...
Tools/buildbot/external.bat
View file @
1a494bdf
...
...
@@ -29,3 +29,7 @@ if not exist tcl8.4.12 (
nmake
-f
makefile
.vc
TCLDIR
=
..\..\tcl8.4.12
nmake
-f
makefile
.vc
TCLDIR
=
..\..\tcl8.4.12
INSTALLDIR
=
..\..\tcltk
install
)
@rem
sqlite
if
not
exist
sqlite
-source
-
3
.3.4
svn
export
http
://svn.python.org/projects/external/sqlite
-source
-
3
.3.4
if
not
exist
build
/Python/PCbuild/sqlite
3
.dll
copy
sqlite
-source
-
3
.3.4/sqlite3.dll
build
/Python/PCbuild
Tools/msi/msi.py
View file @
1a494bdf
...
...
@@ -24,6 +24,8 @@ srcdir = os.path.abspath("../..")
full_current_version
=
None
# Is Tcl available at all?
have_tcl
=
True
# Where is sqlite3.dll located, relative to srcdir?
sqlite_dir
=
"../sqlite-source-3.3.4"
try
:
from
config
import
*
...
...
@@ -86,7 +88,8 @@ extensions = [
'_tkinter.pyd'
,
'_msi.pyd'
,
'_ctypes.pyd'
,
'_ctypes_test.pyd'
'_ctypes_test.pyd'
,
'_sqlite3.pyd'
]
# Well-known component UUIDs
...
...
@@ -963,6 +966,8 @@ def add_files(db):
tcldir = os.path.normpath(srcdir+"
/
..
/
tcltk
/
bin
")
for f in glob.glob1(tcldir, "
*
.
dll
"):
lib.add_file(f, src=os.path.join(tcldir, f))
# Add sqlite
lib.add_file(srcdir+"
/
"+sqlite_dir+"
/
sqlite3
.
dll
")
# check whether there are any unknown extensions
for f in glob.glob1(srcdir+"
/
PCBuild
", "
*
.
pyd
"):
if f.endswith("
_d
.
pyd
"): continue # debug version
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment