src/eric7/MicroPython/Devices/DeviceBase.py

branch
eric7
changeset 9847
d8c7ded575cb
parent 9844
2f3d623f7617
child 9852
b7aef103355a
equal deleted inserted replaced
9846:f5a17960408a 9847:d8c7ded575cb
1217 1217
1218 def upipInstall(self, packages): 1218 def upipInstall(self, packages):
1219 """ 1219 """
1220 Public method to install packages using 'upip'. 1220 Public method to install packages using 'upip'.
1221 1221
1222 @param packages list of package names
1223 @type list of str
1222 @return tuple containing the command output and errors 1224 @return tuple containing the command output and errors
1223 @return tuple of (str, str) 1225 @return tuple of (str, str)
1224 """ 1226 """
1225 command = """ 1227 command = """
1226 def upip_install(): 1228 def upip_install():
1232 """.format(repr(packages)) 1234 """.format(repr(packages))
1233 return self._interface.execute(command, mode=self._submitMode, timeout=60000) 1235 return self._interface.execute(command, mode=self._submitMode, timeout=60000)
1234 1236
1235 def mipInstall(self, package, version, mpy): 1237 def mipInstall(self, package, version, mpy):
1236 """ 1238 """
1237 Public method 1239 Public method to install packages using 'mip'.
1238 1240
1239 @param package package name 1241 @param package package name
1240 @type str 1242 @type str
1241 @param version package version 1243 @param version package version
1242 @type str 1244 @type str

eric ide

mercurial