source: trunk/setup.py @ 27

Revision 27, 1.7 KB checked in by xi, 9 years ago (diff)

Preparing it for the initial release.

Line 
1
2NAME = 'PySyck'
3VERSION = '0.55.1'
4DESCRIPTION = "Python bindings for the Syck YAML parser and emitter"
5LONG_DESCRIPTION = """\
6YAML is a data serialization format designed for human readability
7and interaction with scripting languages. Syck is an extension for
8reading and writing YAML in scripting languages. PySyck is aimed to
9update the current Python bindings for Syck."""
10AUTHOR = "Kirill Simonov"
11AUTHOR_EMAIL = 'xi@resolvent.net'
12LICENSE = "BSD"
13PLATFORMS = "Any"
14URL = "http://xitology.org/pysyck/"
15DOWNLOAD_URL = URL + "%s-%s.tar.gz" % (NAME, VERSION)
16CLASSIFIERS = [
17    "Development Status :: 3 - Alpha",
18    "Intended Audience :: Developers",
19    "License :: OSI Approved :: BSD License",
20    "Programming Language :: Python",
21    "Topic :: Software Development :: Libraries :: Python Modules",
22    "Topic :: Text Processing :: Markup",
23]
24
25from distutils.core import setup, Extension
26
27import sys
28if sys.version < '2.2.4':
29    from distutils.dist import DistributionMetadata
30    DistributionMetadata.classifiers = None
31    DistributionMetadata.download_url = None
32
33import os
34home = os.environ.get('HOME', '')
35
36setup(
37    name=NAME,
38    version=VERSION,
39    description=DESCRIPTION,
40    long_description=LONG_DESCRIPTION,
41    author=AUTHOR,
42    author_email=AUTHOR_EMAIL,
43    license=LICENSE,
44    platforms=PLATFORMS,
45    url=URL,
46    download_url=DOWNLOAD_URL,
47    classifiers=CLASSIFIERS,
48
49    package_dir={'': 'lib'},
50    packages=['syck'],
51    ext_modules=[
52        Extension('_syck', ['ext/_syckmodule.c'],
53            include_dirs=['../../include', '%s/include' % home, '/usr/local/include'],
54            library_dirs=['../../lib', '%s/lib' % home, '/usr/local/include'],
55            libraries=['syck'],
56        ),
57    ],
58)
59
Note: See TracBrowser for help on using the repository browser.