def compile_enaml_file(fullname, ddir=None, force=0, rx=None, quiet=0, *args, **kwargs): """Byte-compile one file using the EnamlImporter. """ fullname = os.path.abspath(fullname) importer = EnamlImporter(make_file_info(fullname)) if not quiet: print('Compiling {}...'.format(fullname)) try: if force: importer.compile_code() else: importer.get_code() return True if IS_PY3 else 1 except Exception as e: if quiet: print('Compiling {}...'.format(fullname)) print(str(e)) # Failed return False if IS_PY3 else 0
def compile_enaml_file(fullname, ddir=None, force=0, rx=None, quiet=0, *args, **kwargs): """Byte-compile one file using the EnamlImporter. """ fullname = os.path.abspath(fullname) importer = EnamlImporter(make_file_info(fullname)) if not quiet: print('Compiling {}...'.format(fullname)) try: if force: importer.compile_code() else: importer.get_code() return True except Exception as e: if quiet: print('Compiling {}...'.format(fullname)) print(str(e)) # Failed return False
# sphinx-quickstart on Mon Aug 22 09:16:47 2011. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented out # serve to show the default. import sys, os from enaml.version import version_info from enaml.core.import_hooks import EnamlImporter EnamlImporter.install() # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. sys.path.insert(0, os.path.abspath('.')) sys.path.insert(0, os.path.abspath('./_sphinxext')) sys.path.insert(0, os.path.abspath('../')) # -- General configuration ----------------------------------------------------- # If your documentation needs a minimal Sphinx version, state it here. needs_sphinx = '1.4' # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
http://www.sat.qc.ca/ :copyright: Copyright 2007-2015 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ from __future__ import print_function import os import sys import optparse from os import path from os.path import walk from enaml.core.import_hooks import EnamlImporter EnamlImporter.install() OPTIONS = [ 'members', 'undoc-members', # 'inherited-members', # disabled because there's a bug in sphinx 'show-inheritance', ] INITPY = '__init__.py' SUFFIXES = set(['.py', '.pyx', '.enaml']) def makename(package, module): """Join package and module with a dot.