src/eric7/MicroPython/Devices/DeviceBase.py

branch
eric7
changeset 10428
a071d4065202
parent 10329
a389b06170d2
child 10439
21c28b0f9e41
equal deleted inserted replaced
10427:3733e2b23cf7 10428:a071d4065202
1423 Public method to install packages using 'upip'. 1423 Public method to install packages using 'upip'.
1424 1424
1425 @param packages list of package names 1425 @param packages list of package names
1426 @type list of str 1426 @type list of str
1427 @return tuple containing the command output and errors 1427 @return tuple containing the command output and errors
1428 @return tuple of (str, str) 1428 @rtype tuple of (str, str)
1429 """ 1429 """
1430 command = """ 1430 command = """
1431 def upip_install(): 1431 def upip_install():
1432 import upip 1432 import upip
1433 upip.install({0}) 1433 upip.install({0})
1452 @param version package version (defaults to None) 1452 @param version package version (defaults to None)
1453 @type str (optional) 1453 @type str (optional)
1454 @param mpy flag indicating to install as '.mpy' file (defaults to True) 1454 @param mpy flag indicating to install as '.mpy' file (defaults to True)
1455 @type bool (optional) 1455 @type bool (optional)
1456 @return tuple containing the command output and errors 1456 @return tuple containing the command output and errors
1457 @return tuple of (str, str) 1457 @rtype tuple of (str, str)
1458 """ 1458 """
1459 parameterStr = repr(package) 1459 parameterStr = repr(package)
1460 if index: 1460 if index:
1461 parameterStr += ", index={0}".format(repr(index)) 1461 parameterStr += ", index={0}".format(repr(index))
1462 if target: 1462 if target:

eric ide

mercurial