Force inclusion of sqlite3.dll

*) There's a bug in py2exe meaning sqlite3.dll doesn't get pulled in
    by listing it in packages.  So we fudge it, assuming it's in
    <sys.base_prefix>/DLLs/sqlite3.dll (which is the case for Python 3.2
    32-bit on Windows).

    Bug report filed:

    	<https://github.com/albertosottile/py2exe/issues/23>

  *) Adds sqlite3.dll back into .wxs file
This commit is contained in:
Athanasius committed 2020-06-21 16:24:15 +01:00
1 parent b8d60cf2ac
commit 1f1946f80d
2 files changed
+6 -1

No files matched your search

+4
View File
@@ -212,6 +212,9 @@
<Component Id="_socket.pyd" Guid="*">
<File Id="_socket.pyd" KeyPath="yes" Source="SourceDir\_socket.pyd" />
</Component>
<Component Id="sqlite3.dll" Guid="*">
<File Id="sqlite3.dll" KeyPath="yes" Source="SourceDir\sqlite3.dll" />
</Component>
<Component Id="_sqlite3.pyd" Guid="*">
<File Id="_sqlite3.pyd" KeyPath="yes" Source="SourceDir\_sqlite3.pyd" />
</Component>
@@ -3400,6 +3403,7 @@
<ComponentRef Id="_multiprocessing.pyd" />
<ComponentRef Id="_queue.pyd" />
<ComponentRef Id="_socket.pyd" />
<ComponentRef Id="sqlite3.dll" />
<ComponentRef Id="_sqlite3.pyd" />
<ComponentRef Id="_ssl.pyd" />
<ComponentRef Id="_testcapi.pyd" />
+2 -1
View File
@@ -134,7 +134,8 @@ elif sys.platform=='win32':
'stations.p',
'systems.p',
'%s.VisualElementsManifest.xml' % APPNAME,
'%s.ico' % APPNAME
'%s.ico' % APPNAME,
'%s/DLLs/sqlite3.dll' % (sys.base_prefix),
]),
('L10n', [join('L10n',x) for x in os.listdir('L10n') if x.endswith('.strings')]),
('plugins', PLUGINS),