Changeset 116:e2a6fbc0cf90 in livinglogic.python.orasql

Show
Ignore:
Timestamp:
05/23/06 17:57:42 (14 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Add setuptools support.

Files:
7 added
1 removed
2 modified

Legend:

Unmodified
Added
Removed
  • NEWS.xml

    r115 r116  
    1515option <option>-s</option>/<option>--seqcopy</option> that 
    1616uses this feature.</item> 
     17<item><module>setuptools</module> is now supported for installation.</item> 
    1718</ulist> 
    1819</section> 
  • setup.py

    r99 r116  
    22# -*- coding: iso-8859-1 -*- 
    33 
    4 # Setup script for orasql 
     4# Setup script for ll-orasql 
     5 
    56 
    67__version__ = "$Revision$"[11:-2] 
    78# $Source$ 
    89 
    9 from distutils.core import setup 
     10 
     11try: 
     12    import setuptools as tools 
     13except ImportError: 
     14    from distutils import core as tools 
     15 
    1016import textwrap 
     17 
    1118 
    1219DESCRIPTION = """ 
     
    3744DESCRIPTION = "\n".join(textwrap.wrap(DESCRIPTION.strip(), width=64, replace_whitespace=True)) 
    3845 
    39 setup( 
     46 
     47args=dict( 
    4048    name="ll-orasql", 
    41     version="1.4.3", 
     49    version="1.5", 
    4250    description="Utilities for working with cx_Oracle", 
    4351    long_description=DESCRIPTION, 
    44     author=u"Walter Dörwald", 
     52    author=u"Walter Doerwald", 
    4553    author_email="walter@livinglogic.de", 
    4654    url="http://www.livinglogic.de/Python/orasql/", 
     
    4957    classifiers=CLASSIFIERS.strip().splitlines(), 
    5058    keywords=",".join(KEYWORDS.strip().splitlines()), 
    51     py_modules=["ll.orasql"], 
    52     package_dir={"ll": ""}, 
     59    packages=["ll", "ll.orasql", "ll.orasql.scripts"], 
     60    package_dir={"": "src"}, 
     61    entry_points=dict( 
     62        console_scripts=[ 
     63            "oracreate = ll.orasql.scripts.oracreate:main", 
     64            "oradrop = ll.orasql.scripts.oradrop:main", 
     65            "oradiff = ll.orasql.scripts.oradiff:main", 
     66            "oramerge = ll.orasql.scripts.oramerge:main", 
     67        ] 
     68    ), 
    5369    scripts=[ 
    5470        "scripts/oracreate.py", 
     
    5672        "scripts/oradiff.py", 
    5773        "scripts/oramerge.py", 
     74    ], 
     75    install_requires=[ 
     76        "ll-core >= 1.3", 
     77        "cx_Oracle >= 4.1.2", 
     78    ], 
     79    namespace_packages=["ll"], 
     80    zip_safe=False, 
     81    dependency_links=[ 
     82        "http://starship.python.net/crew/atuining/cx_Oracle/index.html", # cx_Oracle 
    5883    ] 
    59      
    6084) 
     85 
     86 
     87if __name__ == "__main__": 
     88    tools.setup(**args)