aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@dev.(none)>2009-07-31 07:00:52 -0400
committerWaylan Limberg <waylan@dev.(none)>2009-07-31 07:21:53 -0400
commit83ff480406e8b428186daed9e7372188e62a55be (patch)
treef25dcc1d465345641c20700dbf4d5a29086cb4fd /setup.py
parent5670f4c4f8656c91466259ca97ee66b669a1e2be (diff)
downloadmarkdown-83ff480406e8b428186daed9e7372188e62a55be.tar.gz
markdown-83ff480406e8b428186daed9e7372188e62a55be.tar.bz2
markdown-83ff480406e8b428186daed9e7372188e62a55be.zip
Updated setup script to include dependency for elementtree when python version < 2.5. Since Cheetah just added a dependency on Markdown (in 2.2.2) we've received numerious complaints from people trying to easy_install Cheetah on older pythons.
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py71
1 files changed, 38 insertions, 33 deletions
diff --git a/setup.py b/setup.py
index 3407d79..bf61846 100755
--- a/setup.py
+++ b/setup.py
@@ -23,37 +23,42 @@ class md_install_scripts(install_scripts):
except Exception, e:
print 'ERROR: Unable to create %s: %s' % (bat_path, e)
-setup(
- name = 'Markdown',
- version = version,
- url = 'http://www.freewisdom.org/projects/python-markdown',
- download_url = 'http://pypi.python.org/packages/source/M/Markdown/Markdown-2.0.tar.gz',
- description = "Python implementation of Markdown.",
- author = "Manfred Stienstra and Yuri takhteyev",
- author_email = "yuri [at] freewisdom.org",
- maintainer = "Waylan Limberg",
- maintainer_email = "waylan [at] gmail.com",
- license = "BSD License",
- packages = ['markdown', 'markdown.extensions'],
- scripts = ['bin/markdown'],
- cmdclass = {'install_scripts': md_install_scripts},
- classifiers = ['Development Status :: 5 - Production/Stable',
- 'License :: OSI Approved :: BSD License',
- 'Operating System :: OS Independent',
- 'Programming Language :: Python',
- 'Programming Language :: Python :: 2',
- 'Programming Language :: Python :: 2.3',
- 'Programming Language :: Python :: 2.4',
- 'Programming Language :: Python :: 2.5',
- 'Programming Language :: Python :: 2.6',
- 'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3.0',
- 'Topic :: Communications :: Email :: Filters',
- 'Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries',
- 'Topic :: Internet :: WWW/HTTP :: Site Management',
- 'Topic :: Software Development :: Documentation',
- 'Topic :: Software Development :: Libraries :: Python Modules',
- 'Topic :: Text Processing :: Filters',
- 'Topic :: Text Processing :: Markup :: HTML',
- ],
+data = dict(
+ name = 'Markdown',
+ version = version,
+ url = 'http://www.freewisdom.org/projects/python-markdown',
+ download_url = 'http://pypi.python.org/packages/source/M/Markdown/Markdown-%s.tar.gz' % version,
+ description = 'Python implementation of Markdown.',
+ author = 'Manfred Stienstra and Yuri takhteyev',
+ author_email = 'yuri [at] freewisdom.org',
+ maintainer = 'Waylan Limberg',
+ maintainer_email = 'waylan [at] gmail.com',
+ license = 'BSD License',
+ packages = ['markdown', 'markdown.extensions'],
+ scripts = ['bin/markdown'],
+ cmdclass = {'install_scripts': md_install_scripts},
+ classifiers = ['Development Status :: 5 - Production/Stable',
+ 'License :: OSI Approved :: BSD License',
+ 'Operating System :: OS Independent',
+ 'Programming Language :: Python',
+ 'Programming Language :: Python :: 2',
+ 'Programming Language :: Python :: 2.3',
+ 'Programming Language :: Python :: 2.4',
+ 'Programming Language :: Python :: 2.5',
+ 'Programming Language :: Python :: 2.6',
+ 'Programming Language :: Python :: 3',
+ 'Programming Language :: Python :: 3.0',
+ 'Topic :: Communications :: Email :: Filters',
+ 'Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries',
+ 'Topic :: Internet :: WWW/HTTP :: Site Management',
+ 'Topic :: Software Development :: Documentation',
+ 'Topic :: Software Development :: Libraries :: Python Modules',
+ 'Topic :: Text Processing :: Filters',
+ 'Topic :: Text Processing :: Markup :: HTML',
+ ],
)
+
+if sys.version[:3] < '2.5':
+ data['install_requires'] = ['elementtree']
+
+setup(**data)