You want to have drains on your low points, for condensate, in air lines.
If you use anything flexible, it creates the likely possibility, that there will be bellies you can't drain.
Rigid pipe allows you to easily maintain slopes to your drains.
Do not use PVC. The pressure rating is for water, not air. Yes, there is a big difference.
Some people have not had an issue using PVC for air. That does not disprove the fact, that it is proven unsafe.
When it comes to air, and air compressors, bigger is always better. Don't run a lot of skinny pipe.
The rigid aluminum, steel, or copper lines are the best choices.
Steel can be bought in most lengths at the big box stores.
But, if you still need some pieces threaded, and don't have a pipe threader, the big box stores usually do that. As well as any hardware store.
Having a drier at the compressor is ideal. However, there are lots of tricks to help keep the condensed water out of your tools, if you don't.
Running the main lines high, with the drops, coming off the top of them, before coming down the wall. As well as, having the drop continue down past the hose attachment, to a drain, are good practices.
Water traps only work on water that has condensed. And, are unnecessary if you set up the lines properly. Water vapor goes right through water traps. Which is why you still get water, even with a $100 trap.
A drier, is the only way to completely eliminate moisture issues.