forked from mollyproject/mollyproject
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·125 lines (116 loc) · 5.21 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#!/usr/bin/env python
# Bootstrap setup tools
try:
from setuptools import setup
except ImportError:
try:
import ez_setup
except ImportError:
print "Install failed: You don't have setuptools installed, and we couldn't install it for you"
else:
ez_setup.use_setuptools()
from setuptools import setup
from setuptools import setup
from distutils.command.install import INSTALL_SCHEMES
import os
from molly import __version__ as molly_version
from molly.installer.utils import get_packages_and_data
from molly.installer.commands import (DeployCommand, SysprepCommand,
CreateVirtualenvCommand, DBPrepCommand,
DBCreateCommand, SiteCreateCommand)
print """
;Ok;
lMM:
.0MX.
;WMx
.xx, dMW;
.oWWd. .XM0.
,0M0, ;MMo .;xKx.
.oWWl oMN' .,dXMNx;.
,0Wx. ,dc. .;dXMNk:.
;KX0d:. .d0: .XMNk:.
;OXMMMK; ..',.. .;;. ... ...
.,0MMNx0NMMMMN0l. .;ok000xc. dWWk. :NMK'
.KMMMMXkddONMMXllKMMWXKNMMNo. .:ooc:;'.. xMMW, cMMMl
;KMMMMd. .OMMMMMXo'. .oMMMd. .oOKXWMMMK. .OMMN. lMMMc
.xWMMWMMx :WMMMd. .kMMW; ...,;. ;WMMx .KMMX.
.KMMWlkMM0 .lWMMMMc :MMMd .kMMW, :MMMo
.OMMX; dMM0 lMMMMMMd ,MMMx 'ldkxo:. ,WMMx kMMX..cl' .cl'
.xMMN, xMM0 ;WMMkNMMd ;MMMd lWMMMMMMK, dMMW, 'WMMl xMM0. dMMO
:WMW: .0MMx 'XMMx,WMMo oMMMc 'oxWMMK,;XMMK..KMMk. dMMX..NMMo .OMMk
;0MMx ,WMMc xMMK.cMMM: .KMMX. OMMMMMMWKKMMW';MMM: .KMMd :MMM, :WMMx
dMMM; .kMM0. 'WMMc.0MMN. :MMMo .NMMd:dkOOWMMK.dMMK. :MMM; oMMN. ,XMMMo
xMMW, .dMMW, :MMW'oMMMo .KMM0. .XMMk. .xMMW: OMMx oMMX. lMMN..:NMMMM:
cXMMOl0MMWc ;MMM0WMWd. .0MMX' oMMMOodKMMX:..0MMx dMMX. 'NMM0KMMMMMW'
'OMMMMWO, .oNMMM0:. cWM0' .cKWMMMMKl. lWMx ,XMX. 'OWMMXxXMMO.
.'::;. .,,.. ... ..,;,.. ... ... .':lkK0kkWMM:
.,xXMMMMMWMMMMM0,
.dWMMKdc,.:XMMWMMNo
cMMWc. .xWMMK;xXOc
cMMWkoxOWMMKl.
.oNMMMMWKd,.
:dOOxl
Welcome to the Molly Installer!
http://mollyproject.org/
"""
# Tell distutils to put the data_files in platform-specific installation
# locations. See here for an explanation:
# http://groups.google.com/group/comp.lang.python/browse_thread/thread/35ec7b2fed36eaec/2105ee4d9e8042cb
for scheme in INSTALL_SCHEMES.values():
scheme['data'] = scheme['purelib']
packages, data_files = get_packages_and_data(os.path.dirname(__file__))
setup(
name = 'molly',
version = molly_version,
url = 'http://mollyproject.org/',
author = 'The Molly Project',
description ="A framework for building mobile information portals",
packages = packages,
data_files = data_files,
classifiers=[
'Framework :: Django',
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: Academic Free License (AFL)',
'Intended Audience :: Education',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Education',
'Topic :: Internet',
],
setup_requires = ["setuptools"],
install_requires = [
"python-Levenshtein",
"pywurfl",
"ply",
"PyZ3950", # The one in PyPI is broken! You should install the one from
# https://github.com/oucs/PyZ3950/ *BEFORE* running
# this script
"feedparser>=5.0",
"simplejson",
"rdflib",
"python-dateutil==1.5",
"Django==1.3",
"oauth==1.0.1",
"psycopg2",
"PIL",
"lxml",
"python-ldap",
"django-compress",
"python-memcached",
"South",
"suds",
"django-slimmer",
'pyyaml',
],
dependency_links = [
'http://pylevenshtein.googlecode.com/files/python-Levenshtein-0.10.1.tar.bz2#egg=python-Levenshtein'
],
cmdclass = {
'sysprep': SysprepCommand,
'dbprep': DBPrepCommand,
'dbcreate': DBCreateCommand,
'sitecreate': SiteCreateCommand,
'createvirtualenv': CreateVirtualenvCommand,
'deploy': DeployCommand,
}
)