A fork of https://github.com/Synerty/SOAPpy-py3 This is a working tree till fixes get imported upstream.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

65 lines
1.5 KiB

  1. #!/usr/bin/env python
  2. #
  3. # $Id: setup.py,v 1.11 2005/02/15 16:32:22 warnes Exp $
  4. CVS=0
  5. from distutils.core import setup, Command, Extension
  6. def load_version():
  7. """
  8. Load the version number by executing the version file in a variable. This
  9. way avoids executing the __init__.py file which load nearly everything in
  10. the project, including fpconst which is not yet installed when this script
  11. is executed.
  12. Source: https://github.com/mitsuhiko/flask/blob/master/flask/config.py#L108
  13. """
  14. import imp
  15. from os import path
  16. filename = path.join(path.dirname(__file__), 'SOAPpy', 'version.py')
  17. d = imp.new_module('version')
  18. d.__file__ = filename
  19. try:
  20. execfile(filename, d.__dict__)
  21. except IOError, e:
  22. e.strerror = 'Unable to load the version number (%s)' % e.strerror
  23. raise
  24. return d.__version__
  25. __version__ = load_version()
  26. url="http://pywebsvcs.sf.net/"
  27. long_description="SOAPpy provides tools for building SOAP clients and servers. For more information see " + url
  28. if CVS:
  29. import time
  30. __version__ += "_CVS_" + time.strftime('%Y_%m_%d')
  31. setup(
  32. name="SOAPpy",
  33. version=__version__,
  34. description="SOAP Services for Python",
  35. maintainer="Gregory Warnes",
  36. maintainer_email="Gregory.R.Warnes@Pfizer.com",
  37. url = url,
  38. long_description=long_description,
  39. packages=['SOAPpy','SOAPpy/wstools'],
  40. provides = ['SOAPpy'],
  41. install_requires=[
  42. 'fpconst',
  43. 'pyxml'
  44. ]
  45. )