Changeset 275 for pyyaml/trunk/setup.py


Ignore:
Timestamp:
09/30/08 07:45:18 (6 years ago)
Author:
xi
Message:

Use setuptools for setup.py. Dropped setup_with_libyaml.py; to build libyaml bindings, use --with-libyaml.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/setup.py

    r254 r275  
    11 
    22NAME = 'PyYAML' 
    3 VERSION = '3.05' 
     3VERSION = '3.06' 
    44DESCRIPTION = "YAML parser and emitter for Python" 
    55LONG_DESCRIPTION = """\ 
     
    2222DOWNLOAD_URL = "http://pyyaml.org/download/pyyaml/%s-%s.tar.gz" % (NAME, VERSION) 
    2323CLASSIFIERS = [ 
    24     "Development Status :: 4 - Beta", 
     24    "Development Status :: 5 - Production/Stable", 
    2525    "Intended Audience :: Developers", 
    2626    "License :: OSI Approved :: MIT License", 
     
    3131] 
    3232 
    33 from distutils.core import setup 
     33from setuptools import setup, Extension, Feature 
    3434 
    3535if __name__ == '__main__': 
     
    5050        package_dir={'': 'lib'}, 
    5151        packages=['yaml'], 
     52 
     53        features = { 
     54            'libyaml': Feature( 
     55                description="LibYAML bindings", 
     56                ext_modules=[ 
     57                    Extension('_yaml', ['ext/_yaml.pyx'], libraries=['yaml']), 
     58                ], 
     59            ), 
     60        }, 
    5261    ) 
    5362 
Note: See TracChangeset for help on using the changeset viewer.