forked from jeffkit/SOAPpy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
64 lines (45 loc) · 1.48 KB
/
setup.py
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
#!/usr/bin/env python
#
# $Id: setup.py,v 1.11 2005/02/15 16:32:22 warnes Exp $
CVS=0
from distutils.core import setup, Command, Extension
def load_version():
"""
Load the version number by executing the version file in a variable. This
way avoids executing the __init__.py file which load nearly everything in
the project, including fpconst which is not yet installed when this script
is executed.
Source: https://github.com/mitsuhiko/flask/blob/master/flask/config.py#L108
"""
import imp
from os import path
filename = path.join(path.dirname(__file__), 'SOAPpy', 'version.py')
d = imp.new_module('version')
d.__file__ = filename
try:
execfile(filename, d.__dict__)
except IOError, e:
e.strerror = 'Unable to load the version number (%s)' % e.strerror
raise
return d.__version__
__version__ = load_version()
url="http://pywebsvcs.sf.net/"
long_description="SOAPpy provides tools for building SOAP clients and servers. For more information see " + url
if CVS:
import time
__version__ += "_CVS_" + time.strftime('%Y_%m_%d')
setup(
name="SOAPpy",
version=__version__,
description="SOAP Services for Python",
maintainer="Gregory Warnes",
maintainer_email="Gregory.R.Warnes@Pfizer.com",
url = url,
long_description=long_description,
packages=['SOAPpy','SOAPpy/wstools'],
provides = ['SOAPpy'],
install_requires=[
'fpconst',
'pyxml'
]
)