Commits

Mike Bayer committed 4acc7ec

- [bug] Changed setup.py to skip installing markupsafe
if Python version is < 2.6 or is between 3.0 and
less than 3.3, as Markupsafe now only supports 2.6->2.X,
3.3->3.X. [ticket:216]

  • Participants
  • Parent commits 7052605
  • Tags rel_0_8_1

Comments (0)

Files changed (3)

 0.8.1
+- [bug] Changed setup.py to skip installing markupsafe
+  if Python version is < 2.6 or is between 3.0 and
+  less than 3.3, as Markupsafe now only supports 2.6->2.X,
+  3.3->3.X. [ticket:216]
+
 - [bug] Fixed regression where "entity" filter wasn't
   converted for py3k properly (added tests.)
   [ticket:214]
 # the MIT License: http://www.opensource.org/licenses/mit-license.php
 
 
-__version__ = '0.8.0'
+__version__ = '0.8.1'
 
 
 readme = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
 
+markupsafe_installs = (
+            sys.version_info >= (2, 6) and sys.version_info < (3, 0)
+        ) or sys.version_info >= (3, 3)
+
+if markupsafe_installs:
+    install_requires = ['MarkupSafe>=0.9.2']
+else:
+    install_requires = []
+
 setup(name='Mako',
       version=VERSION,
       description="A super-fast templating language that borrows the \
       license='MIT',
       packages=find_packages('.', exclude=['examples*', 'test*']),
       scripts=['scripts/mako-render'],
-      tests_require = ['nose >= 0.11'],
-      test_suite = "nose.collector",
+      tests_require=['nose >= 0.11'],
+      test_suite="nose.collector",
       zip_safe=False,
-      install_requires=[
-          'MarkupSafe>=0.9.2',
-      ],
-      extras_require = {'beaker':['Beaker>=1.1']},
+      install_requires=install_requires,
+      extras_require={'beaker': ['Beaker>=1.1']},
       entry_points="""
       [python.templating.engines]
       mako = mako.ext.turbogears:TGPlugin