From: Alastair McKinstry Date: Thu, 18 Nov 2021 21:38:04 -0400 Subject: Make builds bit-reproducible Forwarded: no Last-Updated: 2016-06-20 --- jpyutil.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/jpyutil.py +++ b/jpyutil.py @@ -26,6 +26,7 @@ import sysconfig import os import os.path +#import os.environ import platform import ctypes import ctypes.util @@ -634,7 +635,7 @@ py_api_config_file = os.path.join(out_dir, py_api_config_basename) try: with open(py_api_config_file, 'w') as f: - f.write("# Created by '%s' tool on %s\n" % (tool_name, str(datetime.datetime.now()))) + f.write("# Created by '%s' tool\n" % tool_name) f.write( "# This file is read by the 'jpyutil' module in order to load and configure the JVM from Python\n") if java_home_dir: @@ -664,7 +665,7 @@ java_api_config_file = os.path.join(out_dir, java_api_config_basename) java_api_properties = _get_java_api_properties(fail=req_java_api_conf, path=install_dir) java_api_properties.store(java_api_config_file, comments=[ - "Created by '%s' tool on %s" % (tool_name, str(datetime.datetime.now())), + "Created by '%s' tool" % tool_name, "This file is read by the jpy Java API (org.jpy.PyLib class) in order to find shared libraries"]) logger.info("jpy Java API configuration written to '%s'" % java_api_config_file) except Exception: