nilmdb/setup.py

49 lines
1.4 KiB
Python
Raw Permalink Normal View History

2013-01-29 20:21:03 -05:00
#!/usr/bin/python
# This is supposed to be using Distribute:
#
# distutils provides a "setup" method.
# setuptools is a set of monkeypatches on top of that.
# distribute is a particular version/implementation of setuptools.
#
# So we don't really know if this is using the old setuptools or the
# Distribute-provided version of setuptools.
from setuptools import setup, find_packages
from distutils.extension import Extension
2013-01-29 20:21:03 -05:00
from Cython.Build import cythonize
# Hack to workaround logging/multiprocessing issue:
# https://groups.google.com/d/msg/nose-users/fnJ-kAUbYHQ/_UsLN786ygcJ
try: import multiprocessing
except: pass
# Build cython modules.
2013-01-29 20:21:03 -05:00
cython_modules = cythonize("**/*.pyx")
# Run setup
setup(name='nilmdb',
2013-01-31 17:14:47 -05:00
version = '1.0',
url = 'https://git.jim.sh/jim/lees/nilmdb.git',
author = 'Jim Paris',
author_email = 'jim@jtan.com',
tests_require = [ 'nose',
'coverage',
],
setup_requires = [ 'cython',
],
install_requires = [ 'distribute',
'decorator',
],
packages = [ 'nilmdb',
'nilmdb.utils',
2013-01-31 17:25:14 -05:00
'nilmdb.utils.datetime_tz',
'nilmdb.server',
'nilmdb.client',
'nilmdb.cmdline',
],
2013-01-29 20:21:03 -05:00
ext_modules = cython_modules,
zip_safe = False,
2013-01-29 20:21:03 -05:00
)