From cd8d29215c3c414025ef64faf7f3d5d0eec51d65 Mon Sep 17 00:00:00 2001 From: Kostis Anagnostopoulos Date: Sun, 23 Oct 2016 20:50:01 +0200 Subject: [PATCH] fix(ext): stop importing git-submodules for gitdb & smmap Stop importing on runtime submodules of this project: gitdb, smmap. This overrides any other method of setting `SYSPATH`, eg: - pip install -e ./gitdb.git - pip install -e . - pip install git+https://... - dependent projects for IDes(LiClipse & PyCharm). - Manual maintain path. --- git/__init__.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/git/__init__.py b/git/__init__.py index 0514d545b..6d506a51c 100644 --- a/git/__init__.py +++ b/git/__init__.py @@ -15,24 +15,6 @@ __version__ = 'git' -#{ Initialization -def _init_externals(): - """Initialize external projects by putting them into the path""" - if __version__ == 'git': - sys.path.insert(0, osp.join(osp.dirname(__file__), 'ext', 'gitdb')) - - try: - import gitdb - except ImportError: - raise ImportError("'gitdb' could not be found in your PYTHONPATH") - # END verify import - -#} END initialization - -################# -_init_externals() -################# - #{ Imports from git.config import GitConfigParser # @NoMove @IgnorePep8