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
|
||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
||||
if sys.platform is not 'darwin':
|
||||
if sys.platform != 'darwin':
|
||||
extensions = ['rst2pdf.pdfbuilder']
|
||||
|
||||
# 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):
|
||||
# too hard to build PDFs on Mac
|
||||
builders = ['html', 'man']
|
||||
if sys.platform is not 'darwin':
|
||||
if sys.platform != 'darwin':
|
||||
builders.append('pdf')
|
||||
for builder in builders:
|
||||
self.builder = builder
|
||||
@ -51,7 +51,7 @@ ci_cmdclass['test'] = PyTest
|
||||
|
||||
setup_reqs = ['Sphinx']
|
||||
|
||||
if sys.platform is not 'darwin':
|
||||
if sys.platform != 'darwin':
|
||||
setup_reqs.append('rst2pdf')
|
||||
|
||||
setuptools.setup(
|
||||
|
Loading…
x
Reference in New Issue
Block a user