Skip to content

Commit

Permalink
Added a check for adding requirements for rtd.org
Browse files Browse the repository at this point in the history
  • Loading branch information
mwatts15 committed Mar 12, 2015
1 parent ed50456 commit 78abbc2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

from setuptools import setup
import sys
import os

with open('requirements.txt') as f:
required = f.read().splitlines()
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if on_rtd:
required.append("numpydoc")

import os

Expand Down

0 comments on commit 78abbc2

Please sign in to comment.