Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 82 lines (73 sloc) 3.239 kb
d421c13 @mdipierro initial commit
mdipierro authored
1 #!/usr/bin/env python
2
3 from distutils.core import setup
4 from gluon.fileutils import tar, untar, read_file, write_file
5 import tarfile
6 import sys
7
8 def tar(file, filelist, expression='^.+$'):
9 """
10 tars dir/files into file, only tars file that match expression
11 """
12
13 tar = tarfile.TarFile(file, 'w')
14 try:
15 for element in filelist:
16 try:
17 for file in listdir(element, expression, add_dirs=True):
18 tar.add(os.path.join(element, file), file, False)
19 except:
20 tar.add(element)
21 finally:
22 tar.close()
23
24 def start():
25 if 'sdist' in sys.argv:
26 tar('gluon/env.tar',['applications','VERSION','splashlogo.gif'])
27
28 setup(name='web2py',
29 version=read_file("VERSION").split()[1],
30 description="""full-stack framework for rapid development and prototyping
31 of secure database-driven web-based applications, written and
32 programmable in Python.""",
33 long_description="""
34 Everything in one package with no dependencies. Development, deployment,
35 debugging, testing, database administration and maintenance of applications can
36 be done via the provided web interface. web2py has no configuration files,
37 requires no installation, can run off a USB drive. web2py uses Python for the
38 Model, the Views and the Controllers, has a built-in ticketing system to manage
39 errors, an internationalization engine, works with SQLite, PostgreSQL, MySQL,
40 MSSQL, FireBird, Oracle, IBM DB2, Informix, Ingres, sybase and Google App Engine via a
41 Database Abstraction Layer. web2py includes libraries to handle
42 HTML/XML, RSS, ATOM, CSV, RTF, JSON, AJAX, XMLRPC, WIKI markup. Production
43 ready, capable of upload/download streaming of very large files, and always
44 backward compatible.
45 """,
46 author='Massimo Di Pierro',
47 author_email='mdipierro@cs.depaul.edu',
48 license = 'http://web2py.com/examples/default/license',
49 classifiers = ["Development Status :: 5 - Production/Stable"],
50 url='http://web2py.com',
51 platforms ='Windows, Linux, Mac, Unix,Windows Mobile',
52 packages=['gluon',
53 'gluon/contrib',
54 'gluon/contrib/gateways',
55 'gluon/contrib/login_methods',
56 'gluon/contrib/markdown',
57 'gluon/contrib/markmin',
58 'gluon/contrib/memcache',
59 'gluon/contrib/pyfpdf',
60 'gluon/contrib/pymysql',
61 'gluon/contrib/pyrtf',
62 'gluon/contrib/pysimplesoap',
63 'gluon/contrib/simplejson',
64 'gluon/tests',
65 ],
66 package_data = {'gluon':['env.tar']},
67 scripts = ['w2p_apps','w2p_run','w2p_clone'],
68 )
d281acb @mdipierro fixws and 'new' button in grid query
mdipierro authored
69
d421c13 @mdipierro initial commit
mdipierro authored
70 if __name__ == '__main__':
71 #print "web2py does not require installation and"
72 #print "you should just start it with:"
d281acb @mdipierro fixws and 'new' button in grid query
mdipierro authored
73 #print
d421c13 @mdipierro initial commit
mdipierro authored
74 #print "$ python web2py.py"
d281acb @mdipierro fixws and 'new' button in grid query
mdipierro authored
75 #print
d421c13 @mdipierro initial commit
mdipierro authored
76 #print "are you sure you want to install it anyway (y/n)?"
77 #s = raw_input('>')
78 #if s.lower()[:1]=='y':
79 start()
d281acb @mdipierro fixws and 'new' button in grid query
mdipierro authored
80
81
Something went wrong with that request. Please try again.