summaryrefslogtreecommitdiff
path: root/numpy/f2py/rules.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2017-09-27 15:44:11 -0600
committerGitHub <noreply@github.com>2017-09-27 15:44:11 -0600
commit1e45fd9ea1a72cb03a0bab79d30134ef9b7106be (patch)
tree02f2e22e531b634aad4278c64d373ec971e7410c /numpy/f2py/rules.py
parentdf2b5cc749f809276612418256b8875d54d2778f (diff)
parent76b5875855e09479efca5034790a4500b138afc2 (diff)
downloadnumpy-1e45fd9ea1a72cb03a0bab79d30134ef9b7106be.tar.gz
Merge pull request #9780 from bmwiedemann/date
MAINT: Make f2py generated file not contain the (local) date.
Diffstat (limited to 'numpy/f2py/rules.py')
-rw-r--r--numpy/f2py/rules.py6
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!!!
*/