Arch aware pil-setup