Skip to content

Commit

Permalink
hooks: Add hook for lxml (#66)
Browse files Browse the repository at this point in the history
Co-authored-by: Sébastien RAMAGE <sramage@poifindus.com>
  • Loading branch information
doudz and Sébastien RAMAGE committed Nov 4, 2020
1 parent 4f09e71 commit 2b9b5d1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions news/66.new.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add hook for lxml which has hidden imports.
20 changes: 20 additions & 0 deletions src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-lxml.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# ------------------------------------------------------------------
# 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.GPL.txt, distributed with
# this software.
#
# SPDX-License-Identifier: GPL-2.0-or-later
# ------------------------------------------------------------------
#
# lxml is not fully embedded when using standard hiddenimports
# see https://github.com/pyinstaller/pyinstaller/issues/5306
#
# Tested with lxml 4.6.1

from PyInstaller.utils.hooks import collect_submodules

hiddenimports = collect_submodules('lxml')

0 comments on commit 2b9b5d1

Please sign in to comment.