diff --git a/coffeescript/__init__.py b/coffeescript/__init__.py
index <HASH>..<HASH> 100755
--- a/coffeescript/__init__.py
+++ b/coffeescript/__init__.py
@@ -24,6 +24,9 @@ A short example:
 
 __license__ = str("MIT License")
 
+VERSION = (1, 0, 4)
+__version__ = str('.').join(map(str, VERSION))
+
 __all__ = 'compile Compiler'.split()
 
 import os
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -3,13 +3,13 @@
 from setuptools import setup
 import sys
 import io
-
+import coffeescript
 with io.open('README.rst', encoding='ascii') as fp:
     long_description = fp.read()
 
 setup(
     name='CoffeeScript',
-    version='1.0.4',
+    version=coffeescript.__version__,
     author='OMOTO Kenji',
     description='A bridge to the JS CoffeeScript compiler',
Moved the version info from setup.py to __init__.py