2022-08-04 Bruno Haible <bruno@clisp.org>
+ gnulib-tool.py: Implement options --cache-modules, --no-cache-modules.
+ * gnulib-tool.py (main): Accept options --cache-modules,
+ --no-cache-modules.
+ * pygnulib/GLConfig.py: Remove modcache property and constructor
+ argument.
+ * pygnulib/GLInfo.py (GLInfo.usage): Don't document these no-op options.
+
gnulib-tool.py: Use mainstream/GNU coding style.
* gnulib-tool.py: Break lines before the % operator, not after.
* pygnulib/*.py: Likewise. Avoid line breaks when the resulting lines
incl_test_categories=None, excl_test_categories=None, libname=None,
lgpl=None, makefile=None, libtool=None, conddeps=None, macro_prefix=None,
podomain=None, witness_c_macro=None, vc_files=None, symbolic=None,
- lsymbolic=None, modcache=None, configure_ac=None, ac_version=None,
+ lsymbolic=None, configure_ac=None, ac_version=None,
libtests=None, single_configure=None, verbose=None, dryrun=None,
errors=None):
'''GLConfig.__init__(arguments) -> GLConfig
else: # if type(lsymbolic) is not bool
raise TypeError('lsymbolic must be a bool, not %s'
% type(lsymbolic).__name__)
- # modcache
- self.resetModuleCaching()
- if modcache != None:
- if type(modcache) is bool:
- if not modcache:
- self.disableModuleCaching()
- else: # if modcache
- self.enableModuleCaching()
- else: # if type(modcache) is not bool
- raise TypeError('modcache must be a bool, not %s'
- % type(modcache).__name__)
# configure_ac
self.resetAutoconfFile()
if configure_ac != None:
return True
elif key in ['modules', 'avoids', 'tests', 'incl_test_categories', 'excl_test_categories']:
return list()
- elif key in ['libtool', 'lgpl', 'conddeps', 'modcache', 'symbolic',
- 'lsymbolic', 'libtests', 'dryrun']:
+ elif key in ['libtool', 'lgpl', 'conddeps', 'symbolic', 'lsymbolic',
+ 'libtests', 'dryrun']:
return False
if key == 'vc_files':
return None
'''Reset update of the version control files and set it to None.'''
self.table['vc_files'] = None
- # Define modcache methods.
- def checkModuleCaching(self):
- '''Get status of module caching optimization.'''
- return self.table['modcache']
-
- def enableModuleCaching(self):
- '''Enable module caching optimization.'''
- self.table['modcache'] = True
-
- def disableModuleCaching(self):
- '''Disable module caching optimization.'''
- self.table['modcache'] = False
-
- def resetModuleCaching(self):
- '''Reset module caching optimization.'''
- self.table['modcache'] = False
-
# Define configure_ac methods.
def getAutoconfFile(self):
'''Return path of autoconf file relative to destdir.'''
% type(for_test).__name__)
emit = ''
sourcebase = self.config['sourcebase']
- modcache = self.config['modcache']
libname = self.config['libname']
pobase = self.config['pobase']
auxdir = self.config['auxdir']
emit = ''
auxdir = self.config['auxdir']
sourcebase = self.config['sourcebase']
- modcache = self.config['modcache']
libname = self.config['libname']
m4base = self.config['m4base']
pobase = self.config['pobase']