aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Harvey <chris@basementcode.com>2010-06-10 11:34:49 -0400
committerChristopher Harvey <chris@basementcode.com>2010-06-10 11:50:45 -0400
commita5c70c32241b194a1edc94830dfed6805394b221 (patch)
treef9a30819628a8db97ab179c26636c3a3d834a37e
parentMade a place for system wide search paths to live, so that they can be easily... (diff)
downloadventoo-a5c70c32241b194a1edc94830dfed6805394b221.tar.gz
ventoo-a5c70c32241b194a1edc94830dfed6805394b221.tar.bz2
ventoo-a5c70c32241b194a1edc94830dfed6805394b221.zip
Added mostly working setup.py script.
-rw-r--r--setup.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..ac6321e
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+
+from distutils.core import setup
+import os
+
+#create a list of module files, since python can't install directories all
+#at once.
+built_data_files = []
+for dirpath, dirnames, filenames in os.walk('modules'):
+ # Ignore dirnames that start with '.'
+ for i, dirname in enumerate(dirnames):
+ if dirname.startswith('.'): del dirnames[i]
+ built_data_files.append([os.path.join('/usr/share/ventoo/', dirpath), [os.path.join(dirpath, f) for f in filenames]])
+
+#update module search paths for install location
+f = open("src/backend/search_paths.py", 'a')
+f.write("\nmodules = ['/usr/share/ventoo/modules']\n")
+f.close()
+
+setup(name='Ventoo',
+ version='0.5',
+ description='Visual Config file Editor',
+ author='Christopher Harvey',
+ author_email='chris@basementcode.com',
+ url='http://www.google.ca/search?q=ventoo',
+ packages=['frontend', 'backend'],
+ package_dir={'frontend' : 'src/frontend',
+ 'backend' : 'src/backend'},
+ data_files=built_data_files
+ )