Back to index

python-weblib  1.3.9
setup.py
Go to the documentation of this file.
00001 #! /usr/bin/env python
00002 """
00003 setup.py - Setup package with the help Python's DistUtils
00004 
00005 $Id: setup.py,v 1.7 2003/05/23 17:13:53 michael Exp $
00006 """
00007 
00008 import sys,os
00009 from distutils.core import setup
00010 
00011 ##################################################################
00012 # Weird Hack to grab release version from local dir
00013 ##################################################################
00014 exec_startdir = os.path.dirname(os.path.abspath(sys.argv[0]))
00015 package_init_file_name = reduce(os.path.join,[exec_startdir,'pyweblib','__init__.py'])
00016 f = open(package_init_file_name,'r')
00017 s = f.readline()
00018 while s:
00019   s = f.readline().strip()
00020   if s[0:11]=='__version__':
00021     version = eval(s.split('=')[1])
00022     break
00023   s = f.readline()
00024 f.close()
00025 
00026 sys.path.insert(0,os.getcwd())
00027 
00028 import pyweblib
00029 
00030 setup(
00031   #-- Package description
00032   name = 'pyweblib',
00033   license = 'GPL (GNU GENERAL PUBLIC LICENSE) Version 2',
00034   version = version,
00035   description = 'web application library',
00036   long_description = """Web application library:
00037 pyweblib.forms        class library for handling <FORM> input
00038 pyweblib.session      server-side web session handling
00039 pyweblib.helper       misc. stuff useful in CGI-BINs
00040 pyweblib.sslenv       retrieves SSL-related env vars
00041 pyweblib.httphelper   very basic HTTP functions
00042 """,
00043   author = 'Michael Stroeder', 
00044   author_email = 'michael@stroeder.com',
00045   maintainer = 'Michael Stroeder', 
00046   maintainer_email = 'michael@stroeder.com',
00047   url = 'http://www.stroeder.com/pylib/PyWebLib/',
00048   packages = ['pyweblib'],
00049 #  keywords = ['web programming','CGI-BIN','session handling','form handling']
00050 )
00051