comparison python/install_config.py @ 905:d6cce2e5cca6

update for modern Ubuntu 22.04
author Jeff Hammel <k0scist@gmail.com>
date Wed, 10 Apr 2024 08:47:01 -0700
parents 8a86595a6f9c
children c70f4644c2aa
comparison
equal deleted inserted replaced
904:30006a5583fa 905:d6cce2e5cca6
123 123
124 def __call__(self): 124 def __call__(self):
125 Step.__call__(self) 125 Step.__call__(self)
126 self.write_hgrc() 126 self.write_hgrc()
127 127
128 # get the which command 128 # get the `which` command
129 sys.path.append(os.path.join(HOME, 'python')) 129 sys.path.append(os.path.join(HOME, 'python'))
130 from which import which 130 from which import which
131 131
132 #@requires(Command('git')) 132 #@requires(Command('git'))
133 class ConfigureGit(Step): 133 class ConfigureGit(Step):
160 # execute(*postinstall_commands) 160 # execute(*postinstall_commands)
161 161
162 162
163 class DebianPackages(Step): 163 class DebianPackages(Step):
164 """ubuntu packages to install""" 164 """ubuntu packages to install"""
165 # TODO: actually install packages
166 165
167 PACKAGES=["antiword", 166 PACKAGES=["antiword",
168 "arandr", 167 "arandr",
169 "curl", 168 "curl",
170 "emacs", 169 "emacs",
184 "unison", 183 "unison",
185 "xclip", 184 "xclip",
186 ] 185 ]
187 186
188 def __call__(self): 187 def __call__(self):
189 # TODO: actually install this shit 188 # TODO: actually install these packages
190 print ("Ensure the following packages are installed:") 189 print ("Ensure the following packages are installed:")
191 print ("sudo apt-get install %s" % ' '.join(self.PACKAGES)) 190 print ("sudo apt install -y %s" % ' '.join(self.PACKAGES))
192 191
193 192
194 ### CLI 193 ### CLI
195 194
196 def main(args=sys.argv[1:]): 195 def main(args=sys.argv[1:]):