Skip to content

Commit

Permalink
hooks: exclude setuptools_scm from gbulb and travertino
Browse files Browse the repository at this point in the history
`gbulb` and `travertino` (dependencies of `toga`) attempt to query
their version via `setuptools_scm` before reading their metadata
(which, in their case, is automatically collected because `version`
is called with constant argument).

So exclude `setuptools_scm` to avoid unnecessarily colleceting it.
  • Loading branch information
rokm committed Sep 16, 2024
1 parent 4a1fae0 commit 98f17a2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions _pyinstaller_hooks_contrib/stdhooks/hook-gbulb.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# ------------------------------------------------------------------
# Copyright (c) 2024 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
# ------------------------------------------------------------------

# Prevent this package from pulling `setuptools_scm` into frozen application, as it makes no sense in that context.
excludedimports = ["setuptools_scm"]
14 changes: 14 additions & 0 deletions _pyinstaller_hooks_contrib/stdhooks/hook-travertino.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# ------------------------------------------------------------------
# Copyright (c) 2024 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
# ------------------------------------------------------------------

# Prevent this package from pulling `setuptools_scm` into frozen application, as it makes no sense in that context.
excludedimports = ["setuptools_scm"]

0 comments on commit 98f17a2

Please sign in to comment.