File: setup.py

package info (click to toggle)
python-weblib 1.3.5-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 320 kB
  • ctags: 558
  • sloc: python: 1,494; makefile: 18
file content (51 lines) | stat: -rw-r--r-- 1,587 bytes parent folder | download | duplicates (4)
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
#! /usr/bin/env python
"""
setup.py - Setup package with the help Python's DistUtils

$Id: setup.py,v 1.7 2003/05/23 17:13:53 michael Exp $
"""

import sys,os
from distutils.core import setup

##################################################################
# Weird Hack to grab release version from local dir
##################################################################
exec_startdir = os.path.dirname(os.path.abspath(sys.argv[0]))
package_init_file_name = reduce(os.path.join,[exec_startdir,'pyweblib','__init__.py'])
f = open(package_init_file_name,'r')
s = f.readline()
while s:
  s = f.readline().strip()
  if s[0:11]=='__version__':
    version = eval(s.split('=')[1])
    break
  s = f.readline()
f.close()

sys.path.insert(0,os.getcwd())

import pyweblib

setup(
  #-- Package description
  name = 'pyweblib',
  license = 'GPL (GNU GENERAL PUBLIC LICENSE) Version 2',
  version = version,
  description = 'web application library',
  long_description = """Web application library:
pyweblib.forms        class library for handling <FORM> input
pyweblib.session      server-side web session handling
pyweblib.helper       misc. stuff useful in CGI-BINs
pyweblib.sslenv       retrieves SSL-related env vars
pyweblib.httphelper   very basic HTTP functions
""",
  author = 'Michael Stroeder', 
  author_email = 'michael@stroeder.com',
  maintainer = 'Michael Stroeder', 
  maintainer_email = 'michael@stroeder.com',
  url = 'http://www.stroeder.com/pylib/PyWebLib/',
  packages = ['pyweblib'],
#  keywords = ['web programming','CGI-BIN','session handling','form handling']
)