update setup.py so that setup.py develop works
Before adoption: this commit came in with the history the project adopted, so no landing records it.
--HG-- branch : trunk
authored by Armin Ronacher · committed by Armin Ronacher · parent e791c2a · Browse files · 1 file·+6 added−62 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+6 added−62 removed
- other:+6 added−62 removed
Provenance
- Commit
4a3038d- Tree
92a1ac1- Author
Armin Ronacher <armin.ronacher@active-4.com>- Committer
Armin Ronacher <armin.ronacher@active-4.com>- Parent
e791c2a
1 file changed+6 added−62 removed
modified:setup.py+6 added-62 removed
55 unmodified lines56 import sys57 import ez_setup58 ez_setup.use_setuptools()59 60-from distutils.command.build_ext import build_ext61-from distutils.errors import CCompilerError, DistutilsError62-from setuptools import setup, Extension, Feature60+from setuptools import setup61 62 63 def list_files(path):64 for fn in os.listdir(path):3 unmodified lines68 if os.path.isfile(fn):69 yield fn70 71 74-class optional_build_ext(build_ext):75-76- def run(self):77- try:78- build_ext.run(self)79- except DistutilsError, e:80- self.compiler = None81- self._setup_error = e82-83- def build_extension(self, ext):84- try:85- if self.compiler is None:86- raise self._setup_error87- build_ext.build_extension(self, ext)88- except CCompilerError, e:89- print '=' * 7990- print 'INFORMATION'91- print ' the speedup extension could not be compiled, Jinja will'92- print ' fall back to the native python classes.'93- print '=' * 7994- except:95- e = sys.exc_info()[1]96- print '=' * 7997- print 'WARNING'98- print ' could not compile optional speedup extension. This is'99- print ' is not a real problem because Jinja provides a native'100- print ' implementation of those classes but for best performance'101- print ' you could try to reinstall Jinja after fixing this'102- print ' problem: %s' % e103- print '=' * 79104-105-72 setup(107- name='Jinja',108- version='1.3',73+ name='Jinja 2',74+ version='2.0dev',75 url='http://jinja.pocoo.org/',76 license='BSD',77 author='Armin Ronacher',78 author_email='armin.ronacher@active-4.com',3 unmodified lines82 # jinja is egg safe. But because we distribute the documentation83 # in form of html and txt files it's a better idea to extract the files84 zip_safe=False,85 classifiers=[120- 'Development Status :: 5 - Production/Stable',86+ 'Development Status :: 1 - Alpha',87 'Environment :: Web Environment',88 'Intended Audience :: Developers',89 'License :: OSI Approved :: BSD License',90 'Operating System :: OS Independent',1 unmodified line92 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',93 'Topic :: Software Development :: Libraries :: Python Modules',94 'Topic :: Text Processing :: Markup :: HTML'95 ],130- keywords=['python.templating.engines'],131- packages=['jinja', 'jinja.translators', 'jinja.contrib'],96+ packages=['jinja2'],97 data_files=[98 ('docs/html', list(list_files('docs/html'))),99 ('docs/txt', list(list_files('docs/src')))100 ],136- entry_points='''137- [python.templating.engines]138- jinja = jinja.plugin:BuffetPlugin139- ''',140- extras_require={'plugin': ['setuptools>=0.6a2']},101+ extras_require={'plugin': ['setuptools>=0.6a2']}141- features={142- 'speedups': Feature(143- 'optional C-speed enhancements',144- standard=True,145- ext_modules=[146- Extension('jinja._speedups', ['jinja/_speedups.c'])147- ]148- ),149- 'extended-debugger': Feature(150- 'extended debugger',151- standard=True,152- ext_modules=[153- Extension('jinja._debugger', ['jinja/_debugger.c'])154- ]155- )156- },157- cmdclass={'build_ext': optional_build_ext}102 )