Skip to content

Commit dbf2e3e

Browse files
committed
Add a pyinstaller hook file for gdown
1 parent e2ae824 commit dbf2e3e

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

releases/cdprep.spec

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@ a = Analysis(['../cdprep/app/mainwindow.py'],
1717
binaries=[('C:\\Windows\\System32\\vcruntime140_1.dll', '.')],
1818
datas=added_files ,
1919
hiddenimports=[
20-
'win32timezone', 'pkg_resources.py2_warn',
21-
'gdown.download', 'gdown.extractall', 'gdown.cached_download',
22-
'gdown.cli', 'gdown.parse_url', 'gdown'],
23-
hookspath=[],
20+
'win32timezone', 'pkg_resources.py2_warn'],
21+
hookspath=['hooks'],
2422
runtime_hooks=[],
2523
excludes=['PySide', 'PyQt4'],
2624
win_no_prefer_redirects=False,

releases/hooks/hook-gdown.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# -*- coding: utf-8 -*-
2+
# -----------------------------------------------------------------------------
3+
# Copyright © Climate Data Preprocessing Tool Project Contributors
4+
# https://github.com/cgq-qgc/climate-data-preprocessing-tool
5+
#
6+
# This file is part of Climate Data Preprocessing Tool.
7+
# Licensed under the terms of the GNU General Public License.
8+
# -----------------------------------------------------------------------------
9+
10+
from PyInstaller.utils.hooks import collect_all
11+
datas, binaries, hiddenimports = collect_all('gdown')

0 commit comments

Comments
 (0)