File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ doctest_optionflags =
46
46
text_file_format = rst
47
47
addopts = --doctest-rst
48
48
xfail_strict = true
49
+ norecursedirs = ' erfa/_dev'
49
50
50
51
[flake8]
51
52
max-line-length = 100
Original file line number Diff line number Diff line change @@ -148,9 +148,13 @@ def get_extensions():
148
148
scm_version = types .ModuleType ('scm_version' )
149
149
scm_version .__file__ = 'erfa/_dev/scm_version.py'
150
150
code = compile (source , scm_version .__file__ , 'exec' )
151
- exec (code , scm_version .__dict__ )
152
- guess_next_dev = functools .partial (scm_version ._guess_next_dev ,
153
- liberfadir = LIBERFADIR )
151
+ try :
152
+ exec (code , scm_version .__dict__ )
153
+ except ImportError :
154
+ guess_next_dev = None
155
+ else :
156
+ guess_next_dev = functools .partial (scm_version ._guess_next_dev ,
157
+ liberfadir = LIBERFADIR )
154
158
155
159
use_scm_version = {
156
160
'write_to' : os .path .join ('erfa' , '_version.py' ),
You can’t perform that action at this time.
0 commit comments