Files
envoy/setup.py
T
Brice Fernandes d9b70c8a9b Backward-compatible Port to Python 3
- Keeps Python 2.7 and 2.6 compatibility
  - Is not compatible with Python 2.5, as the original code never was.
    This is due to two problems:
     1. Use of the `Thread.is_alive()` method. Python 2.5 only
        provides `Thread.isAlive()`.
     2. Use of the `Popen.terminate()` and `Popen.kill()` methods,
        which only exist in Python >= 2.6
2012-06-08 11:38:05 +01:00

45 lines
1.1 KiB
Python
Executable File

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import envoy
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == "publish":
os.system("python setup.py sdist upload")
sys.exit()
required = []
setup(
name='envoy',
version=envoy.__version__,
description='Simple API for running external processes.',
long_description=open('README.rst').read(),
author='Kenneth Reitz',
author_email='me@kennethreitz.com',
url='https://github.com/kennethreitz/envoy',
packages= ['envoy'],
install_requires=required,
license='MIT',
classifiers=(
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
# 'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
),
)