forked from google/python-subprocess32
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·72 lines (60 loc) · 2.42 KB
/
setup.py
File metadata and controls
executable file
·72 lines (60 loc) · 2.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/usr/bin/env python2
import os
import sys
from distutils.core import setup, Extension
def main():
ext_modules = []
py_modules = []
packages = []
package_dir = {}
if sys.version_info[0] == 2: # PY2
py_modules.append('subprocess32')
if os.name == 'posix':
ext = Extension('_posixsubprocess', ['_posixsubprocess.c'],
depends=['_posixsubprocess_helpers.c'])
ext_modules.append(ext)
else: # PY3
# Install a redirect that makes subprocess32 == subprocess on import.
packages.append('subprocess32')
package_dir['subprocess32'] = 'python3_redirect'
sys.stderr.write('subprocess32 == subprocess on Python 3.\n')
setup(
name='subprocess32',
version='3.2.8.dev',
description='A backport of the subprocess module from Python 3.2/3.3 for use on 2.x.',
long_description="""\
This is a backport of the subprocess standard library module from
Python 3.2 & 3.3 for use on Python 2.
It includes bugfixes and some new features. On POSIX systems it is
guaranteed to be reliable when used in threaded applications.
It includes timeout support from Python 3.3 but otherwise matches
3.2's API.
It has not been tested by the author on Windows.
On Python 3, it merely redirects the subprocess32 name to subprocess.""",
license='PSF license',
maintainer='Gregory P. Smith',
url='https://github.com/google/python-subprocess32',
ext_modules=ext_modules,
py_modules=py_modules,
packages=packages,
package_dir=package_dir,
classifiers=[
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries',
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: Python Software Foundation License',
'Operating System :: POSIX',
'Operating System :: POSIX :: BSD',
'Operating System :: POSIX :: Linux',
'Operating System :: POSIX :: SunOS/Solaris',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 2 :: Only',
'Programming Language :: Python :: Implementation :: CPython',
],
)
if __name__ == '__main__':
main()