summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSenko Rasic <senko.rasic@dobarkod.hr>2011-08-24 07:26:40 (GMT)
committerSenko Rasic <senko.rasic@dobarkod.hr>2011-08-24 07:28:42 (GMT)
commit2b2d00a4aeb4db1ee2d04fcf2893ab1cb62c657e (patch)
treec3679e426f641a9d251e70ba4b1fe92cbc42bcf4
parent3ec1b89df3cfc54b03dd64e1c1a1944c45dee4fd (diff)
downloadgst-qa-system-2b2d00a4aeb4db1ee2d04fcf2893ab1cb62c657e.tar.gz
gst-qa-system-2b2d00a4aeb4db1ee2d04fcf2893ab1cb62c657e.tar.xz
add web application to setup
-rw-r--r--MANIFEST.in1
-rwxr-xr-xsetup.py11
2 files changed, 12 insertions, 0 deletions
diff --git a/MANIFEST.in b/MANIFEST.in
index dc6a5b1..df519ad 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,3 +1,4 @@
include MANIFEST.in README
include bin/insanity-pythondbusrunner.py
include insanity-gtk.desktop
+recursive-include web *.py *.html *.css *.js
diff --git a/setup.py b/setup.py
index 0d1d7d4..e79137f 100755
--- a/setup.py
+++ b/setup.py
@@ -111,6 +111,16 @@ def add_data_file(destination, source):
data_files[destination] = []
data_files[destination].append(source)
+def add_data_files(destination, source, extensions):
+ for path, dirs, files in os.walk (source):
+ for filename in files:
+ for ext in extensions:
+ if filename.endswith(ext):
+ dest_path = os.path.join(destination, path)
+ file_path = os.path.join (path, filename)
+ add_data_file(dest_path, file_path)
+ break
+
# Keep trailing comma on last entry to stay merge friendly:
packages = [
@@ -134,6 +144,7 @@ add_data_file("share/applications", "insanity-gtk.desktop")
add_data_file("share/insanity", "bin/gdb.instructions")
add_data_file("share/insanity", "bin/gst.supp")
add_data_file("share/insanity/libexec", "bin/insanity-pythondbusrunner")
+add_data_files("share/insanity", "web", ['.py', '.html', '.css', '.js'])
setup (cmdclass = cmdclass,
packages = packages,