diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2017-12-29 11:21:07 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2017-12-29 11:21:07 -0500 |
| commit | c161ca24dfe53bccbe1259ee3c6ff04d3b889158 (patch) | |
| tree | 8d2a3283fc3710f77e49f20e8bf76b8c6186486e /setuptools_scm/git.py | |
| parent | cf1459779c80d8de63c5757b4df1d5a179fb8dd6 (diff) | |
| download | setuptools-scm-simple-samefile.tar.gz | |
Use backport of samefile from jaraco.windows to support samefile on Windows on Python 2.7.simple-samefile
Diffstat (limited to 'setuptools_scm/git.py')
| -rw-r--r-- | setuptools_scm/git.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/setuptools_scm/git.py b/setuptools_scm/git.py index 5e294eb..7fa1b32 100644 --- a/setuptools_scm/git.py +++ b/setuptools_scm/git.py @@ -1,8 +1,14 @@ from .utils import do_ex, trace, has_command from .version import meta -from os.path import isfile, join, samefile +from os.path import isfile, join import warnings +try: + from os.path import samefile +except ImportError: + from .win_py31_compat import samefile + + FILES_COMMAND = 'git ls-files' DEFAULT_DESCRIBE = 'git describe --dirty --tags --long --match *.*' |
