cvra / can-bootloader

The bootloader used to flash our CAN-connected boards
BSD 2-Clause "Simplified" License
146 stars 51 forks source link

Use external python implementation #56

Closed antoinealb closed 9 years ago

antoinealb commented 9 years ago

This can only work once cvra/serial-can-bridge#2 gets merged. It replaces the built in can bridge implementation and implements a CAN ID filter.

Still a WIP though.

msplr commented 9 years ago

How do I add the can bridge module? Without it I can't test the client.

antoinealb commented 9 years ago

this should work:

cd /path/to/serial-can-bridge/python
python setup.py install

Note: This will install it system-wide.

msplr commented 9 years ago

Note: This will install it system-wide.

Any way to avoid this?

antoinealb commented 9 years ago

Use virtual environments: http://docs.python-guide.org/en/latest/dev/virtualenvs/

It is very easy to use (just need a tutorial) and it is the best way to handle development dependencies in my opinion.

antoinealb commented 9 years ago

I will have to add it to travis too.

antoinealb commented 9 years ago

You can also uninstall the package via pip: pip uninstall serial_can_bridge.

antoinealb commented 9 years ago

So I tested it on hardware this afternoon, it works.