Skip to content

Commit

Permalink
conf.py change for ReadTheDocs.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeissinger committed May 12, 2015
1 parent 97df7c7 commit efce30d
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,18 @@
# The short X.Y version.
version = '.'.join(release.split('.')[:2])
except pkg_resources.DistributionNotFound:
print('To build the documentation, The distribution information of opendeep')
print('Has to be available. Either install the package into your')
print('development environment or run "setup.py develop" to setup the')
print('metadata. A virtualenv is recommended!')
sys.exit(1)
try:
exec (compile(open('../opendeep/version.py').read(), '../opendeep/version.py', 'exec'))
# The full version, including alpha/beta/rc tags.
release = __version__
# The short X.Y version.
version = '.'.join(release.split('.')[:2])
except:
print('To build the documentation, The distribution information of opendeep')
print('Has to be available. Either install the package into your')
print('development environment or run "setup.py develop" to setup the')
print('metadata. A virtualenv is recommended!')
sys.exit(1)
del pkg_resources

# The language for content autogenerated by Sphinx. Refer to documentation
Expand Down

0 comments on commit efce30d

Please sign in to comment.