Skip to content

Commit dd2cb4e

Browse files
committed
Unvendor sqlite3
1 parent ca0c708 commit dd2cb4e

File tree

3 files changed

+75
-7
lines changed

3 files changed

+75
-7
lines changed

recipe/0019-Unvendor-sqlite3.patch

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
From 556cfcce0f0af3ffe6b60d84146d0caee3f8e223 Mon Sep 17 00:00:00 2001
2+
From: Nehal J Wani <[email protected]>
3+
Date: Mon, 10 Dec 2018 11:45:32 -0600
4+
Subject: [PATCH 19/19] Unvendor sqlite3
5+
6+
---
7+
PCbuild/_sqlite3.vcxproj | 7 ++-----
8+
PCbuild/pcbuild.sln | 2 --
9+
PCbuild/python.props | 2 +-
10+
3 files changed, 3 insertions(+), 8 deletions(-)
11+
12+
diff --git a/PCbuild/_sqlite3.vcxproj b/PCbuild/_sqlite3.vcxproj
13+
index 5456bb5..b058599 100644
14+
--- a/PCbuild/_sqlite3.vcxproj
15+
+++ b/PCbuild/_sqlite3.vcxproj
16+
@@ -61,11 +61,12 @@
17+
</PropertyGroup>
18+
<ItemDefinitionGroup>
19+
<ClCompile>
20+
- <AdditionalIncludeDirectories>$(sqlite3Dir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
21+
+ <AdditionalIncludeDirectories>$(sqlite3Dir)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
22+
<PreprocessorDefinitions>MODULE_NAME="sqlite3";%(PreprocessorDefinitions)</PreprocessorDefinitions>
23+
</ClCompile>
24+
<Link>
25+
<BaseAddress>0x1e180000</BaseAddress>
26+
+ <AdditionalDependencies>$(sqlite3Dir)\lib\sqlite3.lib;%(AdditionalDependencies)</AdditionalDependencies>
27+
</Link>
28+
</ItemDefinitionGroup>
29+
<ItemGroup>
30+
@@ -98,10 +99,6 @@
31+
<Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project>
32+
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
33+
</ProjectReference>
34+
- <ProjectReference Include="sqlite3.vcxproj">
35+
- <Project>{a1a295e5-463c-437f-81ca-1f32367685da}</Project>
36+
- <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
37+
- </ProjectReference>
38+
</ItemGroup>
39+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
40+
<ImportGroup Label="ExtensionTargets">
41+
diff --git a/PCbuild/pcbuild.sln b/PCbuild/pcbuild.sln
42+
index 94a0089..52e74b5 100644
43+
--- a/PCbuild/pcbuild.sln
44+
+++ b/PCbuild/pcbuild.sln
45+
@@ -52,8 +52,6 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "bdist_wininst", "..\PC\bdis
46+
EndProject
47+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_hashlib", "_hashlib.vcxproj", "{447F05A8-F581-4CAC-A466-5AC7936E207E}"
48+
EndProject
49+
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sqlite3", "sqlite3.vcxproj", "{A1A295E5-463C-437F-81CA-1F32367685DA}"
50+
-EndProject
51+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_multiprocessing", "_multiprocessing.vcxproj", "{9E48B300-37D1-11DD-8C41-005056C00008}"
52+
EndProject
53+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "python3dll", "python3dll.vcxproj", "{885D4898-D08D-4091-9C40-C700CFE3FC5A}"
54+
diff --git a/PCbuild/python.props b/PCbuild/python.props
55+
index 570f7fa..eba9382 100644
56+
--- a/PCbuild/python.props
57+
+++ b/PCbuild/python.props
58+
@@ -46,7 +46,7 @@
59+
<ExternalsDir>$(EXTERNALS_DIR)</ExternalsDir>
60+
<ExternalsDir Condition="$(ExternalsDir) == ''">$([System.IO.Path]::GetFullPath(`$(PySourcePath)externals`))</ExternalsDir>
61+
<ExternalsDir Condition="!HasTrailingSlash($(ExternalsDir))">$(ExternalsDir)\</ExternalsDir>
62+
- <sqlite3Dir>$(ExternalsDir)sqlite-3.21.0.0\</sqlite3Dir>
63+
+ <sqlite3Dir>$(SQLITE3_DIR)\</sqlite3Dir>
64+
<bz2Dir>$(ExternalsDir)bzip2-1.0.6\</bz2Dir>
65+
<lzmaDir>$(ExternalsDir)xz-5.2.2\</lzmaDir>
66+
<opensslDir>$(ExternalsDir)openssl-1.0.2p\</opensslDir>
67+
--
68+
2.19.1
69+

recipe/bld.bat

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ if "%ARCH%"=="64" (
1313
set BUILD_PATH=win32
1414
)
1515

16+
set "SQLITE3_DIR=%LIBRARY_PREFIX%"
17+
1618
cd PCbuild
1719
call build.bat --pgo -m -e -v -p %PLATFORM%
1820
if errorlevel 1 exit 1
@@ -37,8 +39,6 @@ REM Populate the DLLs directory
3739
mkdir %PREFIX%\DLLs
3840
xcopy /s /y %SRC_DIR%\PCBuild\%BUILD_PATH%\*.pyd %PREFIX%\DLLs\
3941
if errorlevel 1 exit 1
40-
copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\sqlite3.dll %PREFIX%\DLLs\
41-
if errorlevel 1 exit 1
4242
copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\tcl86t.dll %PREFIX%\DLLs\
4343
if errorlevel 1 exit 1
4444
copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\tk86t.dll %PREFIX%\DLLs\

recipe/meta.yaml

+4-5
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ source:
2727
- 0015-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch
2828
- 0016-Disable-new-dtags-in-unixccompiler.py.patch
2929
- 0017-Fix-cross-compilation-on-Debian-based-distros.patch
30+
- 0018-Disable-registry-lookup-unless-CONDA_PY_ALLOW_REG_PA.patch
31+
- 0019-Unvendor-sqlite3.patch
3032
# TODO :: Depend on our own packages for these:
3133
- url: https://github.com/python/cpython-source-deps/archive/xz-5.2.2.zip # [win]
3234
folder: externals/xz-5.2.2 # [win]
@@ -40,9 +42,6 @@ source:
4042
- url: https://github.com/python/cpython-source-deps/archive/tix-8.4.3.6.zip # [win]
4143
folder: externals/tix-8.4.3.6 # [win]
4244
sha256: e558e3dc5e67ac0942f8fceafce00ca46b177da9ebeaf38ec7fafd9b9913ac56 # [win]
43-
- url: https://github.com/python/cpython-source-deps/archive/sqlite-3.21.0.0.zip # [win]
44-
folder: externals/sqlite-3.21.0.0 # [win]
45-
sha256: 95a4f2d76aeeb68b51239340e3de26e5714ecfb7c8ad82a67b17af82213a8c20 # [win]
4645
- url: https://github.com/python/cpython-source-deps/archive/openssl-1.0.2p.zip # [win]
4746
folder: externals/openssl-1.0.2p # [win]
4847
sha256: f4b177dbac060bdccc42e08a691ee9e9626ffc3be8aab26002bf0114d3b31aee # [win]
@@ -58,7 +57,7 @@ source:
5857

5958

6059
build:
61-
number: 1
60+
number: 2
6261
# Windows has issues updating python if conda is using files itself.
6362
# Copy rather than link.
6463
no_link:
@@ -82,7 +81,7 @@ requirements:
8281
- pkg-config # [unix]
8382
host:
8483
- bzip2 # [unix]
85-
- sqlite # [unix]
84+
- sqlite
8685
- xz # [unix]
8786
- zlib # [unix]
8887
- openssl # [unix]

0 commit comments

Comments
 (0)