blob: 99fda7c20ca7e8ebad69f245bf30a23fcb75bc55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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])
|