Thanks @Davidguest ! It may work but I have some doubts about it... I'd have guessed the cable would be too short, and the clearance a bit too tight for the cable, but I could be wrong!
If you drop the motor out, you might be able to stick it up the seat tube, or squeeze it around the motor...