RootPy installation - ROOT cannot be imported?

Do I have to rebuild ROOT and use the flags -Dpython=ON and -Dpython3=ON as described here?