Use sphinx-astropy rather than astropy-helpers
@@ -29,18 +29,13 @@ import datetime
import os
import sys
+# Load all of the global Astropy configuration
try:
- import astropy_helpers
+ from sphinx_astropy.conf.v1 import * # noqa
except ImportError:
- # Building from inside the docs/ directory?
- if os.path.basename(os.getcwd()) == 'docs':
- a_h_path = os.path.abspath(os.path.join('..', 'astropy_helpers'))
- if os.path.isdir(a_h_path):
- sys.path.insert(1, a_h_path)
-
-# Load all of the global Astropy configuration
-from astropy_helpers.sphinx.conf import *
-import urllib
+ print('ERROR: the documentation requires the sphinx-astropy package to '
+ 'be installed')
+ sys.exit(1)
from configparser import ConfigParser
conf = ConfigParser()
