Changeset 66

Show
Ignore:
Timestamp:
11/08/06 18:39:47 (2 years ago)
Author:
rgrp
Message:

Move to using setuptools instead of distutils for setup.py.

  • trunk/setup.py: updated and cleaned up
  • trunk/INSTALL: updated docs and removed lots of unnecessary dependencies
  • trunk/setup.cfg: never used and just had outdated RPM build info
  • trunk/setup_helper.py: not needed now that we have find_packages
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/INSTALL

    r35 r66  
    99### 1. Check all dependencies (see below) ### 
    1010 
    11 The system depends on these packages. Please make sure you have them 
    12 (or equivalents) installed on your system. (NB: these are the Debian names and 
    13 might be slightly different on your system) 
     11Python dependencies marked with a (*) will be automatically installed when you 
     12run setup.py. 
    1413 
    15     postgresql (object-relational SQL database management system) 
    16     postgresql-client (front-end programs for PostgreSQL) 
    17     python-psycopg (Python DB-API interface to PostgreSQL) 
    18     python-sqlobject (Python module for SQLObject) 
    19     libapache2-mod-python 
    20     libapache2-mod-ssl [optional] 
    21      
    22     django 
    23       * check out the code (revision 304): 
    24         svn co http://code.djangoproject.com/svn/django/trunk/ -r304 
    25       * cd to the directory you checked out, and run: 
    26         python setup.py install 
     14  * A database such as postgresql of mysql 
     15  * python-sqlobject (Python module for SQLObject) (*) 
     16  * django 
     17    * check out the code (revision 3964): 
     18      $ svn co http://code.djangoproject.com/svn/django/trunk/ -r3964 
     19    * cd to the directory you checked out, and run: 
     20      $ python setup.py install 
    2721 
    2822### 2. Install package ### 
  • trunk/setup.py

    r43 r66  
    1 #!/usr/bin/env python 
     1from setuptools import setup, find_packages 
    22 
    3 from distutils.core import setup 
    4 from setup_helper import * 
     3# get the version number  
    54import sys 
    65sys.path.insert(0, './src') 
    7 import dm 
    8  
    9 basePath = os.path.abspath(os.path.dirname(sys.argv[0])) 
     6from dm import __version__ 
    107 
    118setup( 
    129    name = 'domainmodel', 
    13     version = dm.__version__, 
     10    version = __version__, 
     11    packages = find_packages(), 
     12     
     13    # no way to specify the dependency on django as we need a specific revision 
     14    install_requires = ['SQLObject>=0.6,<=0.7.99'], # 'Django>=0.95,'], 
     15 
     16    # metadata for upload to PyPI 
    1417    author = 'Open Knowledge Foundation', 
    1518    author_email = 'kforge-dev@lists.okfn.org', 
    1619    license = 'LGPL', 
    1720    url = 'http://www.kforgeproject.com/', 
     21    download_url = "http://www.openshakespeare.org/code/", 
    1822    description = 'Framework for enterprise applications.', 
    1923    long_description = \ 
     
    2125DomainModel provides a framework for enterprise software applications. 
    2226""", 
    23     package_dir = {'': 'src'}, 
    24     packages = getPackages(os.path.join(basePath, 'src')), 
     27    classifiers = [ 
     28        'Development Status :: 3 - Alpha', 
     29        'Environment :: Console', 
     30        'Environment :: Web', 
     31        'Intended Audience :: Developers', 
     32        'License :: OSI Approved :: LGPL', 
     33        'Operating System :: OS Independent', 
     34        'Programming Language :: Python', 
     35        'Topic :: Software Development :: Libraries :: Python Modules'], 
    2536) 
    2637