diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py index 5dd83c220424ec56e433b21e727a6872b68f5a0e..d46813b4763a999d38a0a0a6aced055e6c8adb50 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 0000000000000000000000000000000000000000..2861aa3995b73b30500549dc9cd41f589ab02a5e --- /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 265ee8a95cf2dca2e2549005c7de277d850d5ff9..bcce3521a0be580312a53a55336007f8aea4f798 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