From 50bfbe88ffa64f8c6efb98993bd5b09bc2323f60 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Wed, 2 Sep 2009 14:44:15 -0400 Subject: [PATCH] Fix version automation. --- pyopencl/__init__.py | 4 +--- pyopencl/version.py | 5 +++++ setup.py | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 pyopencl/version.py diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py index 5dd83c22..d46813b4 100644 --- a/pyopencl/__init__.py +++ b/pyopencl/__init__.py @@ -1,6 +1,4 @@ -VERSION = (0, 90, 1) -VERSION_STATUS = "" -VERSION_TEXT = ".".join(str(x) for x in VERSION) + VERSION_STATUS +from pyopencl.version import VERSION, VERSION_STATUS, VERSION_TEXT import pyopencl._cl as _cl from pyopencl._cl import * diff --git a/pyopencl/version.py b/pyopencl/version.py new file mode 100644 index 00000000..2861aa39 --- /dev/null +++ b/pyopencl/version.py @@ -0,0 +1,5 @@ +VERSION = (0, 90, 1) +VERSION_STATUS = "" +VERSION_TEXT = ".".join(str(x) for x in VERSION) + VERSION_STATUS + + diff --git a/setup.py b/setup.py index 265ee8a9..bcce3521 100644 --- a/setup.py +++ b/setup.py @@ -59,7 +59,7 @@ def main(): ext_kwargs = dict() ver_dic = {} - execfile("pycuda/__init__.py", ver_dic) + execfile("pyopencl/version.py", ver_dic) setup(name="pyopencl", # metadata -- GitLab