setup_skytools: add vars to turn of script/sql installation
authorMarko Kreen <markokr@gmail.com>
Wed, 7 Sep 2011 12:55:50 +0000 (14:55 +0200)
committerMarko Kreen <markokr@gmail.com>
Wed, 7 Sep 2011 12:55:50 +0000 (14:55 +0200)
setup_skytools.py

index 6cc88dffaab7f98bea81bb2dad2ed71e7ba4a486..9370f4962bff2e6a14967015da1ac89460cbfbfb 100755 (executable)
@@ -14,6 +14,9 @@ from distutils.command.build import build
 from distutils.command.install import install
 from subprocess import Popen
 
+INSTALL_SCRIPTS = 1
+INSTALL_SQL = 1
+
 # dont build C module on win32 as it's unlikely to have dev env
 BUILD_C_MOD = 1
 if sys.platform == 'win32':
@@ -37,6 +40,10 @@ nosfx_scripts = [
     'python/qadmin.py',
 ]
 
+if not INSTALL_SCRIPTS:
+    sfx_scripts = []
+    nosfx_scripts = []
+
 # sql files we want to access from python
 sql_files = [
    'sql/pgq/pgq.sql',
@@ -46,6 +53,9 @@ sql_files = [
    #'sql/txid/txid.sql',
 ]
 
+if not INSTALL_SQL:
+    sql_files = []
+
 def getvar(name, default):
     try:
         cf = open('config.mak').read()