diff options
Diffstat (limited to 'baserockimport/exts/pip.to_chunk')
-rwxr-xr-x | baserockimport/exts/pip.to_chunk | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/baserockimport/exts/pip.to_chunk b/baserockimport/exts/pip.to_chunk new file mode 100755 index 0000000..99fda7c --- /dev/null +++ b/baserockimport/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) not in [3, 4]: + # TODO: we don't need the package_source_dir for anything + # but the import tool expects us to need it + # we also don't need the version, + # again the import tool expects us to need it + print('usage: %s package_source_dir chunk_name [version]' % 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[2]) |