Open Bastian-Krause opened 1 year ago
Having labgrid installed without extras:
$ pip freeze | grep pyserial pyserial-labgrid==3.5.0.2 $ python -c 'import serial; print(serial.VERSION)' 3.5.0.2
With modbusrtu or dev extra (pulling in minimalmodbus, which depends on pyserial):
modbusrtu
dev
minimalmodbus
pyserial
$ pip freeze | grep pyserial pyserial==3.5 pyserial-labgrid==3.5.0.2 $ python -c 'import serial; print(serial.VERSION)' 3.5
This means pyserial effectively overwrites pyserial-labgrid.
pyserial-labgrid
I don't know if pyserial always overwrites pyserial-labgrid, it probably depends on pip's dependency resolving strategy.
To avoid this, we might need to rename the package in our pyserial fork, so that the import explicitly uses it.
Having labgrid installed without extras:
With
modbusrtu
ordev
extra (pulling inminimalmodbus
, which depends onpyserial
):This means
pyserial
effectively overwritespyserial-labgrid
.I don't know if
pyserial
always overwritespyserial-labgrid
, it probably depends on pip's dependency resolving strategy.