hyb
2026-01-09 4cb426cb3ae31e772a09d4ade5b2f0242aaeefa0
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')