Skip to content

Commit

Permalink
fix(ext): stop importing git-submodules for gitdb & smmap
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ankostis committed Oct 23, 2016
1 parent 5149c80 commit cd8d292
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions git/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd8d292

Please sign in to comment.