mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Raise env version for the ref_context introduction.
This commit is contained in:
parent
772dbbd4d9
commit
0a416c2d13
@ -72,7 +72,9 @@ default_settings = {
|
|||||||
|
|
||||||
# This is increased every time an environment attribute is added
|
# This is increased every time an environment attribute is added
|
||||||
# or changed to properly invalidate pickle files.
|
# or changed to properly invalidate pickle files.
|
||||||
ENV_VERSION = 42 + (sys.version_info[0] - 2)
|
#
|
||||||
|
# NOTE: increase base version by 2 to have distinct numbers for Py2 and 3
|
||||||
|
ENV_VERSION = 44 + (sys.version_info[0] - 2)
|
||||||
|
|
||||||
|
|
||||||
dummy_reporter = Reporter('', 4, 4)
|
dummy_reporter = Reporter('', 4, 4)
|
||||||
@ -125,7 +127,7 @@ class BuildEnvironment:
|
|||||||
finally:
|
finally:
|
||||||
picklefile.close()
|
picklefile.close()
|
||||||
if env.version != ENV_VERSION:
|
if env.version != ENV_VERSION:
|
||||||
raise IOError('env version not current')
|
raise IOError('build environment version not current')
|
||||||
env.config.values = config.values
|
env.config.values = config.values
|
||||||
return env
|
return env
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user