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.
 
 
 

49 lines
1.4 KiB

  1. #!/usr/bin/python
  2. # This is supposed to be using Distribute:
  3. #
  4. # distutils provides a "setup" method.
  5. # setuptools is a set of monkeypatches on top of that.
  6. # distribute is a particular version/implementation of setuptools.
  7. #
  8. # So we don't really know if this is using the old setuptools or the
  9. # Distribute-provided version of setuptools.
  10. from setuptools import setup, find_packages
  11. from distutils.extension import Extension
  12. from Cython.Build import cythonize
  13. # Hack to workaround logging/multiprocessing issue:
  14. # https://groups.google.com/d/msg/nose-users/fnJ-kAUbYHQ/_UsLN786ygcJ
  15. try: import multiprocessing
  16. except: pass
  17. # Build cython modules.
  18. cython_modules = cythonize("**/*.pyx")
  19. # Run setup
  20. setup(name='nilmdb',
  21. version = '1.0',
  22. url = 'https://git.jim.sh/jim/lees/nilmdb.git',
  23. author = 'Jim Paris',
  24. author_email = 'jim@jtan.com',
  25. tests_require = [ 'nose',
  26. 'coverage',
  27. ],
  28. setup_requires = [ 'cython',
  29. ],
  30. install_requires = [ 'distribute',
  31. 'decorator',
  32. ],
  33. packages = [ 'nilmdb',
  34. 'nilmdb.utils',
  35. 'nilmdb.utils.datetime_tz',
  36. 'nilmdb.server',
  37. 'nilmdb.client',
  38. 'nilmdb.cmdline',
  39. ],
  40. ext_modules = cython_modules,
  41. zip_safe = False,
  42. )