summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 07717eb2..b9f79ebe 100755
--- a/setup.py
+++ b/setup.py
@@ -1,12 +1,20 @@
#! /usr/bin/env python
+import sys, os.path, re
from distutils.core import setup
-import re
+# check if configure has run
+if not os.path.isfile('config.mak'):
+ print "please run ./configure && make first"
+ print "Note: setup.py is suppsed to be run from Makefile"
+ sys.exit(1)
+
+# load version
buf = open("configure.ac","r").read(256)
m = re.search("AC_INIT[(][^,]*,\s+([^)]*)[)]", buf)
ac_ver = m.group(1)
+# run actual setup
setup(
name = "skytools",
license = "BSD",