Closed nicola closed 10 years ago
I might avoid psutil, by just providing temporary support for UNIX systems.
Now a firefox instance is launched with mozrunner. Maybe mozrunner could implement a b2g too?
Oh so you can reliable include mozrunner (part of mozbase) and that way you don't have to install psutils? Or do you still need to install psutils?
What do you mean with mozrunner "implementing a b2g too"?
Sole, I am talking about @campd mozrunner in python-fxdevtools. I don't know what you mentioned. Since we are using a very little subset of psutils, we might even just execute command line commands from python like lsof on mac and linux and avoid psutil, but for now psutil make me focus on the product, rather than the dependencies I have
What do you mean with mozrunner "implementing a b2g too"?
Mozrunner supports b2g for a long time. Maybe the version @campd is using needs an update? Also in regards of psutils there is mozsystemmonitor which is running operations via psutils. That might help you to simplify your code.
@whimboo, my choice of using straight away li terminal commands such as netstat or lsof is that it is the only subset of psutil that I need, (psutil requires compilation which is a step more fore the user).
Is there anything there I could look at for mozrunner?
Best you look at the documentation, which is up-to-date with the latest release. Here the specific docs for B2G: http://mozbase.readthedocs.org/en/latest/mozrunner.html#using-a-device-runner
This requires adb, while with the implementation in Fireplay as it is now, there is no need of adb.
It automatically detects ports to connect for Firefox and FirefoxOS. However the dependency with psutil is quite tricky to solve.
To install ps util