Skip to content

Commit

Permalink
more rtd fixing.
Browse files Browse the repository at this point in the history
This time adding the environment var stuff to setup.py
  • Loading branch information
Cadair committed Jul 2, 2015
1 parent 6508190 commit a03de68
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 4 additions & 2 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,17 @@
if os.path.isdir(a_h_path):
sys.path.insert(1, a_h_path)

# -- General configuration ----------------------------------------------------


# -- Read the Docs Setup -----------------------------------------------------

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

if on_rtd:
os.environ['SUNPY_CONFIGDIR'] = '/home/docs/checkouts/readthedocs.org/user_builds/sunpy/'

# -- General configuration ----------------------------------------------------


# Load all of the global Astropy configuration
from astropy_helpers.sphinx.conf import *

Expand Down
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
import __builtin__ as builtins
builtins._ASTROPY_SETUP_ = True

# -- Read the Docs Setup -----------------------------------------------------

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

if on_rtd:
os.environ['SUNPY_CONFIGDIR'] = '/home/docs/checkouts/readthedocs.org/user_builds/sunpy/'

from astropy_helpers.setup_helpers import (
register_commands, adjust_compiler, get_debug_option, get_package_info)
from astropy_helpers.git_helpers import get_git_devstr
Expand Down

0 comments on commit a03de68

Please sign in to comment.