From e96bf13c71ec0dc6d75245352ee414ca3e8253db Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Mon, 21 Mar 2022 03:15:39 +0000 Subject: MAINT: Add a future warning for --empty-gen --- numpy/f2py/f2py2e.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'numpy') diff --git a/numpy/f2py/f2py2e.py b/numpy/f2py/f2py2e.py index ed5d529cf..90aea7705 100755 --- a/numpy/f2py/f2py2e.py +++ b/numpy/f2py/f2py2e.py @@ -325,6 +325,16 @@ def scaninputline(inputline): options['buildpath'] = buildpath options['include_paths'] = include_paths options.setdefault('f2cmap_file', None) + if not emptygen: + import warnings + warnings.warn("\n --empty-gen is false" + " this will default to true" + " in subsequent releases" + " for build uniformity\n" + " see: " + "https://numpy.org/devdocs/f2py/buildtools/index.html" + "\n Pass --empty-gen to silence this warning\n", + FutureWarning, stacklevel=2) return files, options -- cgit v1.2.1