Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Defining a particular envvar to determine the current build environment #5

Closed
dahlia opened this Issue July 17, 2012 · 0 comments

1 participant

Hong Minhee
Hong Minhee
Owner
dahlia commented July 17, 2012

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
)
Hong Minhee dahlia closed this in bf09e27 July 18, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.