I'm unclear on the question. It's no different than running the cable to the rear derailleur. If you only have hydro hose guides and not proper cable stops, you'll either need to run full-length housing.
In fact, even with traditional cable stops, for the most reliable, trouble-free installation, consider a full-length housing run.
In fact, even with traditional cable stops, for the most reliable, trouble-free installation, consider a full-length housing run.