summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xexts/pip.to_chunk23
1 files changed, 23 insertions, 0 deletions
diff --git a/exts/pip.to_chunk b/exts/pip.to_chunk
new file mode 100755
index 0000000..976abdb
--- /dev/null
+++ b/exts/pip.to_chunk
@@ -0,0 +1,23 @@
+#!/usr/bin/env python
+
+# We can get rid of this nonsense once we modify the import tool
+
+from __future__ import print_function
+
+import sys
+
+if len(sys.argv) != 2:
+ print('usage: %s chunk_name' % sys.argv[0], file=sys.stderr)
+ sys.exit(1)
+
+print('''{
+ "name": "%s",
+ "kind": "chunk",
+ "build-commands": [
+ "python setup.py build"
+ ],
+ "install-commands": [
+ "python setup.py install --prefix=/usr --root \"$DESTDIR\""
+ ]
+}
+''' % sys.argv[1])