0
|
1 #!/usr/bin/env python
|
|
2 """
|
|
3 tar up a set of packages in a virtualenv per platform:
|
|
4
|
|
5 <package>-<version>-<platform>.tar.gz
|
|
6
|
|
7 Example:
|
|
8
|
|
9 mozmill-1.4.1-linux.tar.gz
|
|
10 """
|
|
11
|
|
12 import sys
|
|
13
|
|
14 from optparse import OptionParser
|
|
15 from subprocess import call
|
|
16
|
|
17
|
|
18 def main(args=sys.argv[1:]):
|
|
19 usage = '%prog [options] <package> <platform>'
|
|
20 parser = OptionParser(usage)
|
|
21 parser.add_option('--version',
|
|
22 help='version of the package to be installed (defaults to the current on the cheeseshop)')
|
|
23 options, args = parser.parse_args(args)
|
|
24
|
|
25 # create a virtualenv
|
|
26 # call(['virtualenv'])
|
|
27
|
|
28 if __name__ == '__main__':
|
|
29 main()
|