-
Notifications
You must be signed in to change notification settings - Fork 129
/
Copy pathhook-bokeh.py
27 lines (23 loc) · 922 Bytes
/
hook-bokeh.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# ------------------------------------------------------------------
# Copyright (c) 2020 PyInstaller Development Team.
#
# This file is distributed under the terms of the GNU General Public
# License (version 2.0 or later).
#
# The full license is available in LICENSE, distributed with
# this software.
#
# SPDX-License-Identifier: GPL-2.0-or-later
# ------------------------------------------------------------------
from PyInstaller.utils.hooks import collect_data_files, copy_metadata, is_module_satisfies
# core/_templates/*
# server/static/**/*
# subcommands/*.py
# bokeh/_sri.json
datas = collect_data_files('bokeh.core') + \
collect_data_files('bokeh.server') + \
collect_data_files('bokeh.command.subcommands', include_py_files=True) + \
collect_data_files('bokeh')
# bokeh >= 3.0.0 sets its __version__ from metadata
if is_module_satisfies('bokeh >= 3.0.0'):
datas += copy_metadata('bokeh')