crosspop / okydoky

Automated docs builder using Sphinx/GitHub/Distribute for use with private projects.

Home Page:http://pypi.python.org/pypi/Okydoky

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Defining a particular envvar to determine the current build environment

dahlia opened this issue · comments

Define OKYDOKY=1 environment variable to determine whether it’s currently being built under Okydoky or not. If so, setup.py could conditionally specify several dependencies for documentation:

install_requires = ['Flask', 'SQLAlchemy']

if os.environ.get('OKYDOKY'):
    install_requires.extend(['Sphinx', 'sphinxcontrib-httpdomain'])

setup(
    name='YourProject',
    install_requires=install_reqruires
)