summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index f1c1954..8e4fb66 100644
--- a/setup.py
+++ b/setup.py
@@ -2,9 +2,9 @@ import sys
import os
from setuptools import setup, Command
-with open('VERSION', 'r') as v:
- __version__ = v.read().rstrip()
-
+# Pull version from source without importing
+# since we can't import something we haven't built yet :)
+exec(open('kafka/version.py').read())
class Tox(Command):