Skip to content

Commit

Permalink
add pathlib as hidden-import to pyinstaller (#10386)
Browse files Browse the repository at this point in the history
  • Loading branch information
memsharded authored Jan 20, 2022
1 parent 861170c commit a36f10a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pyinstaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,18 @@ def pyinstall(source_folder):
conan_path = os.path.join(source_folder, 'conans', 'conan.py')
conan_server_path = os.path.join(source_folder, 'conans', 'conan_server.py')
conan_build_info_path = os.path.join(source_folder, "conans/build_info/command.py")
hidden = ("--hidden-import=glob --hidden-import=conan.tools.microsoft "
hidden = ("--hidden-import=glob " # core stdlib
"--hidden-import=pathlib "
"--hidden-import=distutils.dir_util "
# The conan.tools integration
"--hidden-import=conan.tools.microsoft "
"--hidden-import=conan.tools.gnu --hidden-import=conan.tools.cmake "
"--hidden-import=conan.tools.meson --hidden-import=conan.tools.apple "
"--hidden-import=conan.tools.build --hidden-import=conan.tools.env "
"--hidden-import=conan.tools.files --hidden-import=conan.tools.gnu "
"--hidden-import=conan.tools.google --hidden-import=conan.tools.intel "
"--hidden-import=conan.tools.layout --hidden-import=conan.tools.premake "
"--hidden-import=conan.tools.qbs")
hidden += " --hidden-import=distutils.dir_util"
if platform.system() != "Windows":
hidden += " --hidden-import=setuptools.msvc"
win_ver = ""
Expand Down

0 comments on commit a36f10a

Please sign in to comment.