mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-22 00:40:30 +00:00
Install sqldriver packages for py2exe package
This commit is contained in:
parent
f44deb85c4
commit
8a892bcc50
1 changed files with 7 additions and 0 deletions
7
setup.py
7
setup.py
|
|
@ -457,6 +457,13 @@ try:
|
|||
py2exe_build.run(self)
|
||||
lib_dir = self.lib_dir
|
||||
dist_dir = self.dist_dir
|
||||
# Copy needed sqlite plugin files to distribution directory.
|
||||
import PyQt4
|
||||
src = os.path.join(os.path.dirname(PyQt4.__file__), "plugins", "sqldrivers")
|
||||
dst = os.path.join(dist_dir, "sqldrivers")
|
||||
copy_tree(src, dst)
|
||||
for path in os.listdir(dst):
|
||||
self.lib_files.append(os.path.join(dst, path))
|
||||
# create the Installer, using the files py2exe has created.
|
||||
script = InnoScript(lib_dir, dist_dir,
|
||||
self.windows_exe_files, self.lib_files)
|
||||
|
|
|
|||
Loading…
Reference in a new issue