diff options
Diffstat (limited to 'numpy/f2py/rules.py')
-rw-r--r-- | numpy/f2py/rules.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/numpy/f2py/rules.py b/numpy/f2py/rules.py index 6a1f5ae6e..36e2222ea 100644 --- a/numpy/f2py/rules.py +++ b/numpy/f2py/rules.py @@ -107,16 +107,14 @@ for k in ['decl', #################### Rules for C/API module ################# +generationtime = int(os.environ.get('SOURCE_DATE_EPOCH', time.time())) module_rules = { 'modulebody': """\ /* File: #modulename#module.c * This file is auto-generated with f2py (version:#f2py_version#). * f2py is a Fortran to Python Interface Generator (FPIG), Second Edition, * written by Pearu Peterson <pearu@cens.ioc.ee>. - * See http://cens.ioc.ee/projects/f2py2e/ - * Generation date: """ + time.asctime(time.localtime(time.time())) + """ - * $R""" + """evision:$ - * $D""" + """ate:$ + * Generation date: """ + time.asctime(time.gmtime(generationtime)) + """ * Do not edit this file directly unless you know what you are doing!!! */ |