Not difficult at all, I moved mine together with their mounting bracket into the engine compartment adjacent to the driver's side fender. The mounting bracket just needed a little trimming of extra length and some aluminum stand-off spacers to hold it up just off the fender.
Wiring it involves a decision on your part. If you want to keep using the original locker switch you're going to have to cut the old wiring under the transfer case and splice an extension/new wiring in between the original wiring and the compressors you moved into the engine compartment. Matching the colors of the wiring doesn't require you use the same color wiring, just that the extension connects the same colors together. Crimp splices covered by heat shrinkable tubing is better than soldering the new wiring in.
What I did and recommend is to not continue using the OEM locker switch, just wire your own pair of locker switches. One for the rear and one for the front locker. Its locker logic requiring that the rear locker has to be locked before engaging the front locker irritated me. Same with having to be in 4Lo, since once in a while I'd need to be driving in 4Hi through deep sand which meant I couldn't use my lockers.
Wiring the compressors is no more difficult than wiring a light bulb with a simple good quality medium to heavy duty on-off toggle switch. The compressor doesn't draw enough power to warrant anything more than a light duty switch but most of those are too fragile and not dependable enough for offroad use. I added a 5 amp fuse in both locker circuits. The compressor has 3 wires but only two are needed to turn it off & on, ground and power.
This is how I did mine, and I hesitate even showing my underhood compressor installation because it pales in comparison to Flinfish's magnificent job above. Then again this photo shows it years after I installed it so pay no attention to its filthiness which reflects the general condition of my TJ lol.
You'll need new rubber air and vent (intake) line hoses, just match a piece of the old hoses with one from your local auto parts or hardware store. And its a pressure hose not a vacuum hose. Your lockers operate off the 5 psi produced by the compressors.
View attachment 455466
View attachment 455468
View attachment 455467