summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2020-11-30 14:33:20 -0700
committerCharles Harris <charlesr.harris@gmail.com>2020-11-30 14:33:20 -0700
commit242a1b52fba8e654f3d2a309a6390fac51909df5 (patch)
tree61d2a12c4a9e3806570e052d092b05962207d7b9
parentc924809ce02135db2349187ca94e5a985840bb96 (diff)
downloadnumpy-242a1b52fba8e654f3d2a309a6390fac51909df5.tar.gz
ENH: Timestamp development versions.
This adds a timestamp to development versions of NumPy. We used to do this for NumPy nightly builds so that pip would pickup the latest version, but pip 20.3 breaks with that as there is disagreement between the wheel name and the internal version. Closes #17885.
-rwxr-xr-xsetup.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 4d0ded925..326d34e7a 100755
--- a/setup.py
+++ b/setup.py
@@ -130,7 +130,10 @@ def get_version_info():
GIT_REVISION = "Unknown"
if not ISRELEASED:
- FULLVERSION += '.dev0+' + GIT_REVISION[:7]
+ import time
+
+ time_stamp = time.strftime("%Y%m%d%H%M%S", time.localtime())
+ FULLVERSION += f'.dev0+{time_stamp}_{GIT_REVISION[:7]}'
return FULLVERSION, GIT_REVISION