forked from chenshouyuan/crab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
61 lines (50 loc) · 1.96 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
#!/usr/bin/env python
import os
descr = """Crab is a flexible, fast recommender engine for Python. The engine
aims to provide a rich set of components from which you can construct a
customized recommender system from a set of algorithms."""
DISTNAME = 'scikits.crab'
DESCRIPTION = 'A recommender engine for Python.'
LONG_DESCRIPTION = open('README.md').read()
MAINTAINER = 'Marcel Caraciolo',
MAINTAINER_EMAIL = '[email protected]',
URL = 'http://muricoca.github.com/crab/'
LICENSE = 'new BSD'
DOWNLOAD_URL = "http://pypi.python.org/pypi/scikits.crab"
VERSION = '0.0.1'
from numpy.distutils.core import setup
def configuration(parent_package='', top_path=None):
if os.path.exists('MANIFEST'):
os.remove('MANIFEST')
from numpy.distutils.misc_util import Configuration
config = Configuration(None, parent_package, top_path,
namespace_package=['scikits'])
config.set_options(
ignore_setup_xxx_py=True,
assume_default_configuration=True,
delegate_options_to_subpackages=True,
quiet=True,
)
config.add_subpackage('scikits')
config.add_subpackage(DISTNAME)
config.add_data_files('scikits/__init__.py')
return config
if __name__ == "__main__":
setup(configuration=configuration,
name=DISTNAME,
version=VERSION,
install_requires='numpy',
namespace_packages=['scikits'],
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
description=DESCRIPTION,
license=LICENSE,
url=URL,
download_url=DOWNLOAD_URL,
long_description=LONG_DESCRIPTION,
classifiers=['Development Status :: 1 - Planning',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Topic :: Scientific/Engineering'])