mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	build(gen_vimdoc): abort if doxygen version is too old
There have been a few instances where developers got confused as to why their generated documentation differs from the one generated by the CI. More often than not, the reason is that their doxygen version is older than 1.9.0, which is the current minimum version. Having a simple version check will help save future developers avoid this problem.
This commit is contained in:
		| @@ -53,11 +53,19 @@ import logging | |||||||
| from xml.dom import minidom | from xml.dom import minidom | ||||||
|  |  | ||||||
| MIN_PYTHON_VERSION = (3, 6) | MIN_PYTHON_VERSION = (3, 6) | ||||||
|  | MIN_DOXYGEN_VERSION = (1, 9, 0) | ||||||
|  |  | ||||||
| if sys.version_info < MIN_PYTHON_VERSION: | if sys.version_info < MIN_PYTHON_VERSION: | ||||||
|     print("requires Python {}.{}+".format(*MIN_PYTHON_VERSION)) |     print("requires Python {}.{}+".format(*MIN_PYTHON_VERSION)) | ||||||
|     sys.exit(1) |     sys.exit(1) | ||||||
|  |  | ||||||
|  | doxygen_version = tuple([int(i) for i in subprocess.check_output(["doxygen", "-v"], | ||||||
|  |                         universal_newlines=True).split('.')]) | ||||||
|  |  | ||||||
|  | if doxygen_version < MIN_DOXYGEN_VERSION: | ||||||
|  |     print("requires Doxygen {}.{}.{}+".format(*MIN_DOXYGEN_VERSION)) | ||||||
|  |     sys.exit(1) | ||||||
|  |  | ||||||
| # DEBUG = ('DEBUG' in os.environ) | # DEBUG = ('DEBUG' in os.environ) | ||||||
| INCLUDE_C_DECL = ('INCLUDE_C_DECL' in os.environ) | INCLUDE_C_DECL = ('INCLUDE_C_DECL' in os.environ) | ||||||
| INCLUDE_DEPRECATED = ('INCLUDE_DEPRECATED' in os.environ) | INCLUDE_DEPRECATED = ('INCLUDE_DEPRECATED' in os.environ) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Dundar Goc
					Dundar Goc