Changeset 2520:b322c0ceba5d in livinglogic.python.xist

Show
Ignore:
Timestamp:
05/23/06 15:39:45 (13 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Moved source files into src directory (to avoid import problems when
importing from the directory where setup.py is in).

Files:
47 added
46 removed
1 modified

Legend:

Unmodified
Added
Removed
  • setup.py

    r2517 r2520  
    77# $Source$ 
    88 
    9 from distutils.core import setup, Extension 
     9try: 
     10    import setuptools as tools 
     11except ImportError: 
     12    from distutils import core as tools 
     13 
    1014import textwrap 
    1115 
     
    4751DESCRIPTION = "\n".join(textwrap.wrap(DESCRIPTION.strip(), width=64, replace_whitespace=True)) 
    4852 
    49 setup( 
     53 
     54args = dict( 
    5055    name="ll-xist", 
    51     version="2.13", 
     56    version="2.14", 
    5257    description="An extensible HTML/XML generator", 
    5358    long_description=DESCRIPTION, 
     
    5964    classifiers=CLASSIFIERS.strip().splitlines(), 
    6065    keywords=",".join(KEYWORDS.strip().splitlines()), 
    61     packages=["ll.xist", "ll.xist.ns"], 
    62     package_dir={"ll.xist": "_xist"}, 
     66    package_dir={"src": ""}, 
     67    packages=["ll", "ll.xist", "ll.xist.ns"], 
    6368    ext_modules=[ 
    64         Extension("ll.xist.csstokenizer", ["_xist/csstokenizer.cxx"]), 
    65         Extension("ll.xist.helpers", ["_xist/helpers.c"]) 
     69        tools.Extension("ll.xist.csstokenizer", ["ll/xist/csstokenizer.cxx"]), 
     70        tools.Extension("ll.xist.helpers", ["ll/xist/helpers.c"]) 
    6671    ], 
    6772    scripts=[ 
     
    7075        "scripts/doc2txt.py", 
    7176        "scripts/xml2xsc.py", 
    72     ] 
     77    ], 
     78    namespace_packages=["ll"], 
     79    always_unzip=True 
    7380) 
     81 
     82 
     83if __name__ == "__main__": 
     84    tools.setup(**args)