comparison buttercup/buttercup.py @ 53:af4155b0a260 default tip

add --prefix option
author Jeff Hammel <k0scist@gmail.com>
date Tue, 03 Nov 2020 07:59:36 -0800
parents b717de8b384f
children
comparison
equal deleted inserted replaced
52:b717de8b384f 53:af4155b0a260
1 """ 1 """
2 the flower blooming to k0s.org 2 the flower blooming to k0s.org
3 """ 3 """
4
5 # TODO: this should all go in a `pip` requirements file
4 6
5 import os 7 import os
6 from subprocess import check_call as call 8 from subprocess import check_call as call
7 from . import source 9 from . import source
8 10
50 'uploader', 52 'uploader',
51 'webob_view', 53 'webob_view',
52 'wordstream', 54 'wordstream',
53 'wsgintegrate'] 55 'wsgintegrate']
54 56
55 def __init__(self, srcdir): 57 def __init__(self, srcdir, prefix=None):
56 self.srcdir = srcdir 58 self.srcdir = srcdir
57 59 self.prefix = prefix or self.HG
58 # TODO: this should all go in a `pip` requirements file
59 60
60 # base webapps and dependencies 61 # base webapps and dependencies
61 self.sources = {'hg': ['%s/%s' % (self.HG, package) 62 self.sources = {'hg': ['%s/%s' % (self.prefix, package)
62 for package in self.PACKAGES ]} 63 for package in self.PACKAGES ]}
63 self.sources['git'] = [] 64 self.sources['git'] = []
64 65
65 66
66 def install(self): 67 def install(self):