Fix improper string comparisons.
This commit is contained in:
parent
7df00fb1c8
commit
59843efc86
@ -27,7 +27,7 @@ import sys
|
|||||||
|
|
||||||
# Add any Sphinx extension module names here, as strings. They can be
|
# Add any Sphinx extension module names here, as strings. They can be
|
||||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
||||||
if sys.platform is not 'darwin':
|
if sys.platform != 'darwin':
|
||||||
extensions = ['rst2pdf.pdfbuilder']
|
extensions = ['rst2pdf.pdfbuilder']
|
||||||
|
|
||||||
# Add any paths that contain templates here, relative to this directory.
|
# Add any paths that contain templates here, relative to this directory.
|
||||||
|
4
setup.py
4
setup.py
@ -37,7 +37,7 @@ try:
|
|||||||
def run(self):
|
def run(self):
|
||||||
# too hard to build PDFs on Mac
|
# too hard to build PDFs on Mac
|
||||||
builders = ['html', 'man']
|
builders = ['html', 'man']
|
||||||
if sys.platform is not 'darwin':
|
if sys.platform != 'darwin':
|
||||||
builders.append('pdf')
|
builders.append('pdf')
|
||||||
for builder in builders:
|
for builder in builders:
|
||||||
self.builder = builder
|
self.builder = builder
|
||||||
@ -51,7 +51,7 @@ ci_cmdclass['test'] = PyTest
|
|||||||
|
|
||||||
setup_reqs = ['Sphinx']
|
setup_reqs = ['Sphinx']
|
||||||
|
|
||||||
if sys.platform is not 'darwin':
|
if sys.platform != 'darwin':
|
||||||
setup_reqs.append('rst2pdf')
|
setup_reqs.append('rst2pdf')
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user