setup.py 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. import os
  2. from distutils.command.install import INSTALL_SCHEMES
  3. for scheme in INSTALL_SCHEMES.values():
  4. scheme['data'] = scheme['purelib']
  5. from distutils.core import setup, Extension
  6. setsc = Extension("guppy.sets.setsc",
  7. [
  8. "src/sets/sets.c",
  9. "src/sets/bitset.c",
  10. "src/sets/nodeset.c"
  11. ]
  12. )
  13. heapyc = Extension("guppy.heapy.heapyc",
  14. [
  15. 'src/heapy/heapyc.c',
  16. 'src/heapy/stdtypes.c'
  17. ]
  18. )
  19. def doit():
  20. setup(name="guppy",
  21. version="0.1.10",
  22. description="Guppy-PE -- A Python Programming Environment",
  23. long_description="""
  24. Guppy-PE is a library and programming environment for Python,
  25. currently providing in particular the Heapy subsystem, which supports
  26. object and heap memory sizing, profiling and debugging. It also
  27. includes a prototypical specification language, the Guppy
  28. Specification Language (GSL), which can be used to formally specify
  29. aspects of Python programs and generate tests and documentation from a
  30. common source.
  31. The guppy top-level package contains the following subpackages:
  32. doc
  33. Documentation files. These are in a package so they get installed
  34. at a well-defined place, especially to support interactive help.
  35. etc
  36. Support modules. Contains especially the Glue protocol module.
  37. gsl
  38. The Guppy Specification Language implementation. This can
  39. be used to create documents and tests from a common source.
  40. heapy
  41. The heap analysis toolset. It can be used to find information
  42. about the objects in the heap and display the information
  43. in various ways.
  44. sets
  45. Bitsets and 'nodesets' implemented in C.
  46. """,
  47. author="Sverker Nilsson",
  48. author_email="sn@sncs.se",
  49. url="http://guppy-pe.sourceforge.net",
  50. license='MIT',
  51. packages=[
  52. "guppy",
  53. "guppy.doc",
  54. "guppy.etc",
  55. "guppy.gsl",
  56. "guppy.heapy",
  57. "guppy.heapy.test",
  58. "guppy.sets",
  59. ],
  60. package_data={"guppy.doc" : ["*.html","*.jpg"]},
  61. ext_modules=[setsc, heapyc]
  62. )
  63. doit()