Skip to content

Commit

Permalink
no rst2pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Apr 18, 2016
1 parent 168b61c commit 73cee79
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions doc/conf.py
Expand Up @@ -22,12 +22,11 @@

# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = [ 'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
'sphinx.ext.ifconfig',
'rst2pdf.pdfbuilder',
extensions = [ 'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
'sphinx.ext.ifconfig',
]

# Add any paths that contain templates here, relative to this directory.
Expand Down Expand Up @@ -58,7 +57,7 @@ def read_version(filename):
major = 'LIBLAS_VERSION_MAJOR'
minor = 'LIBLAS_VERSION_MINOR'
patch = 'LIBLAS_VERSION_PATCH'

for line in data:
if str(major) in line:
line = line.replace('SET('+major+' ', '')
Expand All @@ -76,7 +75,7 @@ def read_version(filename):
line = line.replace('"','')
pat = line.strip()
return '%s.%s.%s'%(maj, min, pat)

version = read_version('../CMakeLists.txt')

# The full version, including alpha/beta/rc tags.
Expand Down

0 comments on commit 73cee79

Please sign in to comment.