Skip to content

Commit

Permalink
Merge pull request #566 from enthought/fix_jaguar_pyinstaller
Browse files Browse the repository at this point in the history
MAINT: move some problematic imports locally.
  • Loading branch information
cournape committed Jul 17, 2015
2 parents de2d38e + deb0a73 commit 11e7f8d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions enstaller/_yaml_config.py
Expand Up @@ -5,8 +5,6 @@
from enstaller.auth import APITokenAuth, UserPasswordAuth
from enstaller.errors import InvalidConfiguration
from enstaller.plat import custom_plat
from enstaller.vendor import jsonschema
from enstaller.vendor.ruamel import yaml


_API_TOKEN = "api_token"
Expand Down Expand Up @@ -106,6 +104,11 @@
def load_configuration_from_yaml(cls, filename_or_fp):
# FIXME: local import to workaround circular import
from enstaller.config import STORE_KIND_BROOD

# Local import to workaround some freezing issues for jaguar and speed up
# imports a bit when yaml is not used.
from enstaller.vendor import jsonschema
from enstaller.vendor.ruamel import yaml
if isinstance(filename_or_fp, string_types):
with open(filename_or_fp, "rt") as fp:
data = yaml.load(fp)
Expand Down

0 comments on commit 11e7f8d

Please sign in to comment.