Closed vchong closed 5 years ago
@hzhuang1 fyi
Maybe you need to replace "python-serial" by "python3-serial" in the same change set. As my understanding, "python" is only for python2. The command include packages for both python2 and python3. It's not good.
I did try to search for python3-serial but it seems like there's no such package.
Found it on 'apt search' though. Will update. Thanks
As my understanding, "python" is only for python2.
Mostly that is true, but I think there are distro's where "python" actually means python3. I think this was the case when I was running Arch Linux. Having said that, our instructions in the docs is for Ubuntu, so the proposed patch here is correct IMHO.
Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
What script uses python-serial? How is python invoked in that script? Has it been migrated to python3? My concern is, if the script invokes python
on a distribution that links python
to python2
, then installing python3-serial
won't work, right?
To cover both versions and use cases, should we just include both the python- and python3- packages? It is a 1 time install only so the cost isn't really that high.
Both the python- and python3- packages have been listed. Tag has been added as well. @jbech-linaro please merge if ok, else comment on changes required. Thanks!
I'm fine with it and it's not the first package that we have listed "twice". We can (and probably should) clean this up later when Python 3 only has got wider acceptance. I'll merge.
Signed-off-by: Victor Chong victor.chong@linaro.org