diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-11-04 14:28:36 +0000 |
---|---|---|
committer | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-11-04 14:28:36 +0000 |
commit | d585a1ef9fb77510c37d3c7ad942eb12f47847db (patch) | |
tree | 16a752fdef46bbb920bdb8f03dcac06d477de404 | |
parent | 820af76e65df52445f8296c963c606a5d3ecd6d1 (diff) | |
download | import-d585a1ef9fb77510c37d3c7ad942eb12f47847db.tar.gz |
Add a temporary pip.to_chunk
-rwxr-xr-x | exts/pip.to_chunk | 23 |
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]) |