summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorRohit Goswami <rog32@hi.is>2022-03-21 03:15:39 +0000
committerRohit Goswami <rog32@hi.is>2022-03-21 03:19:00 +0000
commite96bf13c71ec0dc6d75245352ee414ca3e8253db (patch)
treea919757baaddc4a30e7737c9726ea5e6b917bcd5 /numpy
parent1954088c0509dfef5c9b5725ea2e575d9e789edb (diff)
downloadnumpy-e96bf13c71ec0dc6d75245352ee414ca3e8253db.tar.gz
MAINT: Add a future warning for --empty-gen
Diffstat (limited to 'numpy')
-rwxr-xr-xnumpy/f2py/f2py2e.py10
1 files changed, 10 insertions, 0 deletions
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