summaryrefslogtreecommitdiff
path: root/src/setup.py
diff options
context:
space:
mode:
authorBenjamin Drung <bdrung@ubuntu.com>2011-06-15 23:35:38 +0200
committerBenjamin Drung <bdrung@ubuntu.com>2011-06-15 23:35:38 +0200
commit419f32edef2c6beb43b802503b123fe913fe6fc9 (patch)
tree3b83e772490535a244f20bff519c11834da8cac0 /src/setup.py
parent4ef5cbd6323c36029143b2203770356b3fa2edc4 (diff)
Add setup.py to install moz_version.py.
Diffstat (limited to 'src/setup.py')
-rw-r--r--src/setup.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/setup.py b/src/setup.py
new file mode 100644
index 0000000..9dbd571
--- /dev/null
+++ b/src/setup.py
@@ -0,0 +1,31 @@
+#!/usr/bin/python
+
+import os
+import re
+
+from distutils.core import setup
+
+# look/set what version we have
+changelog = "../debian/changelog"
+if os.path.exists(changelog):
+ head = open(changelog).readline()
+ match = re.compile(".*\((.*)\).*").match(head)
+ if match:
+ version = match.group(1)
+
+scripts = [
+ 'dh_xul-ext',
+ 'install-xpi',
+ 'xpi-pack',
+ 'xpi-repack',
+ 'xpi-unpack',
+ 'moz-version',
+]
+
+if __name__ == '__main__':
+ setup(name='mozilla-devscripts',
+ version=version,
+ url='https://launchpad.net/mozilla-devscripts',
+ scripts=scripts,
+ py_modules=['moz_version'],
+ )