Is there a functional equivalent of python's virtualenv for arch/general linux packages?

I'd like to be able to test and build packages with strange dependencies without making a mess of my system.

submitted by /u/Incomplete-Cycle
[link] [comments]