contextlib2/setup.py
Allan Haywood 44966d33d3 Fixing issue13: setup.py does not fallback to using distutils.core import setup
Added falling back to distutils.core
    Tested install on a machine with and without setuptools
2017-04-24 12:53:34 -07:00

30 lines
1 KiB
Python
Executable file

#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='contextlib2',
version=open('VERSION.txt').read().strip(),
py_modules=['contextlib2'],
license='PSF License',
description='Backports and enhancements for the contextlib module',
long_description=open('README.rst').read(),
author='Nick Coghlan',
author_email='ncoghlan@gmail.com',
url='http://contextlib2.readthedocs.org',
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: Python Software Foundation License',
# These are the Python versions tested, it may work on others
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
)