-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·69 lines (62 loc) · 1.73 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·69 lines (62 loc) · 1.73 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
#!/usr/bin/env python
##
# copyright 2008, pg/python project.
# http://python.projects.postgresql.org
##
import sys
import os
from distutils.core import Extension
NAME = 'py-postgresql'
VERSION = '0.8'
LONG_DESCRIPTION = """
py-postgresql is a set of Python modules providing interfaces to various parts
of PostgreSQL. Notably, it provides a driver for interacting with a database.
"""
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'License :: OSI Approved :: MIT License',
'License :: OSI Approved :: Attribution Assurance License',
'License :: OSI Approved :: Python Software Foundation License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Database',
]
defaults = {
'name' : NAME,
'version' : VERSION,
'description' : 'Python interfaces to PostgreSQL (driver)',
'long_description' : LONG_DESCRIPTION,
'author' : 'James William Pye',
'author_email' : 'x@jwp.name',
'maintainer' : 'pg/python project',
'maintainer_email' : 'python-general@pgfoundry.org',
'url' : 'http://python.projects.postgresql.org',
'classifiers' : CLASSIFIERS,
'packages' : [
'postgresql',
'postgresql.encodings',
'postgresql.protocol',
'postgresql.driver',
'postgresql.test',
],
'ext_modules' : [
Extension(
'postgresql.protocol.cbuffer',
[os.path.join('postgresql', 'protocol', 'buffer.c')],
libraries = (sys.platform == 'win32' and ['ws2_32'] or []),
),
],
'scripts' : [
'bin/pg_dotconf',
'bin/pg_python',
'bin/pg_tin',
'bin/pg_withcluster'
]
}
if __name__ == '__main__':
from distutils.core import setup
setup(**defaults)