예제 #1
0
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
예제 #2
0
#-----------------------------------------------------------------------------
# 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')
예제 #3
0
#-----------------------------------------------------------------------------
# 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')
예제 #4
0
파일: hook-pytz.py 프로젝트: TeamSWAP/swap
#-----------------------------------------------------------------------------
# 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')
예제 #5
0
# 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')
예제 #6
0
#-----------------------------------------------------------------------------
# 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')
예제 #7
0
#-----------------------------------------------------------------------------
# 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')
예제 #8
0
def hook(mod):
    global hiddenimports, datas
    hiddenimports = (collect_submodules('docutils.languages') +
                     collect_submodules('docutils.writers'))
    datas = collect_data_files('docutils')
    return mod
예제 #9
0
#-----------------------------------------------------------------------------
# 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')
예제 #10
0
#-----------------------------------------------------------------------------
# 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')
예제 #11
0
#
#    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)
         )
예제 #12
0
def hook(mod):
    global hiddenimports, datas
    hiddenimports = collect_submodules('sphinx.ext')
    datas = collect_data_files('sphinx')
    return mod
예제 #13
0
#-----------------------------------------------------------------------------
# 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')
예제 #14
0
def hook(mod):
    global hiddenimports, datas
    hiddenimports = collect_submodules('sphinx.ext')
    datas = collect_data_files('sphinx')
    return mod
예제 #15
0
from hookutils import collect_data_files

# Get the cacert.pem
datas = collect_data_files('requests') 
예제 #16
0
#-----------------------------------------------------------------------------
# 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')
예제 #17
0
파일: hook-enki.py 프로젝트: adjustive/enki
#    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))
예제 #18
0
# .. 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')
예제 #19
0
#
# 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')
예제 #20
0
from hookutils import collect_data_files

datas = collect_data_files('imagehash')
예제 #21
0
from hookutils import collect_data_files

# Get the cacert.pem
##datas = collect_data_files('requests') 
datas = collect_data_files('certifi')