[Scipy-svn] r2181 - trunk/Lib

scipy-svn at scipy.org scipy-svn at scipy.org
Mon Aug 28 22:40:34 CDT 2006


Author: oliphant
Date: 2006-08-28 22:40:28 -0500 (Mon, 28 Aug 2006)
New Revision: 2181

Modified:
   trunk/Lib/version.py
Log:
Use NumPy scheme for development versions of scipy.

Modified: trunk/Lib/version.py
===================================================================
--- trunk/Lib/version.py	2006-08-27 07:44:15 UTC (rev 2180)
+++ trunk/Lib/version.py	2006-08-29 03:40:28 UTC (rev 2181)
@@ -1,13 +1,15 @@
-version = '0.5.0'
+version = '0.5.1'
+release=False
 
-import os
-svn_version_file = os.path.join(os.path.dirname(__file__),
-                                '__svn_version__.py')
+if not release:
+    import os
+    svn_version_file = os.path.join(os.path.dirname(__file__),
+                                    '__svn_version__.py')
 
-if os.path.isfile(svn_version_file):
-    import imp
-    svn = imp.load_module('scipy.__svn_version__',
-                          open(svn_version_file),
-                          svn_version_file,
-                          ('.py','U',1))
-    version += '.'+svn.version
+    if os.path.isfile(svn_version_file):
+        import imp
+        svn = imp.load_module('scipy.__svn_version__',
+                              open(svn_version_file),
+                              svn_version_file,
+                              ('.py','U',1))
+        version += '.dev'+svn.version



More information about the Scipy-svn mailing list