Changeset 89

Show
Ignore:
Timestamp:
03/29/08 17:03:47 (8 months ago)
Author:
amcgregor
Message:

Added dynamic requirement of the uuid module for Python < 2.5

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/setup.py

    r86 r89  
    1818    """Finds static resources in package. Adapted from turbogears.finddata."""   
    1919    out = {} 
    20     exclude = ('*.py', '*.pyc', '*~', '.*', '*.bak', '*.swp*') 
     20    exclude = ('*.py', '*.pyc', '*.pyo', '*~', '.*', '*.bak', '*.swp*') 
    2121    exclude_directories = ('.*', 'CVS', '_darcs', './build', './dist', 'EGG-INFO', '*.egg-info') 
    2222    stack = [(convert_path(where), '', package, only_in_packages)] 
     
    6161    return out 
    6262 
     63install_requires = [] 
     64 
     65if sys.version_info <= (2, 4): 
     66    install_requires.append('uuid') 
     67 
    6368setup( 
    6469        name="TurboMail", 
    6570        version=version, 
    66      
     71         
    6772        description=description, 
    6873        long_description=long_description, 
     
    7277        download_url=download_url, 
    7378        license=license, 
    74      
     79         
    7580        extras_require = { 
    7681            'turbogears': ["TurboMail-Gears >= 0.1"],