Skip to content
Myr

Added message that setup.py develop is required to build the docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 9983e84 · Browse files · 1 file+11 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+11 added−3 removed

  • other:+11 added−3 removed

1 file+11 added−3 removed

modified:docs/conf.py+11 added-3 removed
41 unmodified lines
42# General information about the project.43project = u'Flask'44copyright = u'2010, Armin Ronacher'4546import pkg_resources4746# The version info for the project you're documenting, acts as replacement for47# |version| and |release|, also used in various other places throughout the48# built documents.49import pkg_resources50try:51release = __import__('pkg_resources').get_distribution('Flask').version51 release = pkg_resources.get_distribution('Flask').version52except pkg_resources.DistributionNotFound:53 print 'To build the documentation, The distribution information of Flask'54 print 'Has to be available. Either install the package into your'55 print 'development environment or run "setup.py develop" to setup the'56 print 'metadata. A virtualenv is recommended!'57 sys.exit(1)58del pkg_resources5960if 'dev' in release:61 release = release.split('dev')[0] + 'dev'62version = '.'.join(release.split('.')[:2])63
188 unmodified lines