Thanks @astrofrog. 
As far as I understand the path should be relative to ``docs``, so ``astropy_helpers/sphinx/local/python3links.inv`` doesn't work. But your suggestion to do absolute path works.