def hook(mod): global hiddenimports, datas hiddenimports = (collect_submodules('docutils.languages') + collect_submodules('docutils.writers') + collect_submodules('docutils.parsers.rst.languages') + collect_submodules('docutils.parsers.rst.directives')) datas = collect_data_files('docutils') return mod
#----------------------------------------------------------------------------- # Copyright (c) 2013, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this software. #----------------------------------------------------------------------------- from hookutils import collect_data_files datas = collect_data_files('idlelib')
#----------------------------------------------------------------------------- # Copyright (c) 2013, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this software. #----------------------------------------------------------------------------- from hookutils import collect_data_files # IPython (tested with 0.13) requires the following files: # ./site-packages/IPython/config/profile/README_STARTUP datas = collect_data_files('IPython')
#----------------------------------------------------------------------------- # Copyright (c) 2013, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this software. #----------------------------------------------------------------------------- from hookutils import collect_data_files # On Linux pytz installed from distribution repository uses zoneinfo # fron /usr/share/zoneinfo/ and no data files might be collected. datas = collect_data_files('pytz')
# The full license is in the file COPYING.txt, distributed with this software. #----------------------------------------------------------------------------- # # *************************************************** # hook-astriod.py - PyInstaller hook file for astriod # *************************************************** # The astriod package, in __pkginfo__.py, is version 1.1.1. Looking at its # source: # # From __init__.py, starting at line 111:: # # BRAIN_MODULES_DIR = join(dirname(__file__), 'brain') # if BRAIN_MODULES_DIR not in sys.path: # # add it to the end of the list so user path take precedence # sys.path.append(BRAIN_MODULES_DIR) # # load modules in this directory # for module in listdir(BRAIN_MODULES_DIR): # if module.endswith('.py'): # __import__(module[:-3]) # # So, we need all the Python source in the ``brain/`` subdirectory, # since this is run-time discovered and loaded. Therefore, these # files are all data files. from hookutils import collect_data_files # Note that brain/ isn't a module (it lacks an __init__.py, so it can't be # referred to as astroid.brain; instead, locate it as package astriod, # subdirectory brain/. datas = collect_data_files('astroid', True, 'brain')
#----------------------------------------------------------------------------- # Copyright (c) 2013, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this software. #----------------------------------------------------------------------------- from hookutils import collect_submodules, collect_data_files hiddenimports = collect_submodules('sphinx.ext') datas = collect_data_files('sphinx')
#----------------------------------------------------------------------------- # Copyright (c) 2013, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this software. #----------------------------------------------------------------------------- from hookutils import collect_submodules, collect_data_files hiddenimports = (collect_submodules('docutils.languages') + collect_submodules('docutils.writers') + collect_submodules('docutils.parsers.rst.languages') + collect_submodules('docutils.parsers.rst.directives')) datas = collect_data_files('docutils')
def hook(mod): global hiddenimports, datas hiddenimports = (collect_submodules('docutils.languages') + collect_submodules('docutils.writers')) datas = collect_data_files('docutils') return mod
# # def register_plugins(linter, directory): # """load all module and package in the given directory, looking for a # 'register' function in each one, used to register pylint checkers # """ # imported = {} # for filename in os.listdir(directory): # base, extension = splitext(filename) # if base in imported or base == '__pycache__': # continue # if extension in PY_EXTS and base != '__init__' or ( # not extension and isdir(join(directory, base))): # try: # module = load_module_from_file(join(directory, filename)) # # # So, we need all the Python source in the ``checkers/`` and ``reporters/`` # subdirectories, since thiese are run-time discovered and loaded. Therefore, # these files are all data files. In addition, since this is a module, the # pylint/__init__.py file must be included, since submodules must be children of # a module. from hookutils import collect_data_files import pylint datas = ( [(pylint.__file__, 'pylint')] + collect_data_files('pylint.checkers', True) + collect_data_files('pylint.reporters', True) )
def hook(mod): global hiddenimports, datas hiddenimports = collect_submodules('sphinx.ext') datas = collect_data_files('sphinx') return mod
from hookutils import collect_data_files # Get the cacert.pem datas = collect_data_files('requests')
# Public License along with Enki. If not, see # <http://www.gnu.org/licenses/>. # # ********************************************* # hook-enki.py - PyInstaller hook file for Enki # ********************************************* # PyInstaller can't find hidden imports (such as the # dynamically-discovered plugins), not can it know about # data files (such as ``.ui`` files). This hook informs # PyInstaller that these files must be included in the Enki # bundle. from hookutils import collect_submodules, collect_data_files hiddenimports = ( # The plugins are dynamically loaded, making them a # hidden import. collect_submodules('enki.plugins') + # The colorbutton widget is loaded from a .ui file, # making it a hidden import. Not sure if others there # are or not, but they're certainly all needed. collect_submodules('enki.widgets')) datas = ( # Enki relies on a number of .ui files and some .json # files. Gather all these. collect_data_files('enki') + # Enki's dynamic plug system needs the plugin source # files available to be found by for os.listdir-type # operations. Gather them. collect_data_files('enki.plugins', True))
# .. Copyright (C) 2012-2013 Bryan A. Jones. # # This file is part of Enki. # # Enki is free software: you can redistribute it and/or # modify it under the terms of the GNU General Public # License as published by the Free Software Foundation, # either version 2 of the License, or (at your option) # any later version. # # Enki is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR # PURPOSE. See the GNU General Public License for more # details. # # You should have received a copy of the GNU General # Public License along with Enki. If not, see # <http://www.gnu.org/licenses/>. # # ***************************************************** # hook-qutepart.py - PyInstaller hook file for qutepart # ***************************************************** # Pyinstaller can't know about data files used by qutepart. This hook informs # Pyinstaller that these files must be included in the Enki bundle. from hookutils import collect_data_files # Gather all non-Python files in the qutepart package. datas = collect_data_files('qutepart')
# # Copyright (C) 2012, Bryan A. Jones # Based on code written by Ryan Welsh, welchr AT umich.edu # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA from hookutils import collect_data_files datas = collect_data_files('idlelib')
from hookutils import collect_data_files datas = collect_data_files('imagehash')
from hookutils import collect_data_files # Get the cacert.pem ##datas = collect_data_files('requests') datas = collect_data_files('certifi')