| 1 | |
|---|
| 2 | NAME = 'PySyck' |
|---|
| 3 | VERSION = '0.55.1' |
|---|
| 4 | DESCRIPTION = "Python bindings for the Syck YAML parser and emitter" |
|---|
| 5 | LONG_DESCRIPTION = """\ |
|---|
| 6 | YAML is a data serialization format designed for human readability |
|---|
| 7 | and interaction with scripting languages. Syck is an extension for |
|---|
| 8 | reading and writing YAML in scripting languages. PySyck is aimed to |
|---|
| 9 | update the current Python bindings for Syck.""" |
|---|
| 10 | AUTHOR = "Kirill Simonov" |
|---|
| 11 | AUTHOR_EMAIL = 'xi@resolvent.net' |
|---|
| 12 | LICENSE = "BSD" |
|---|
| 13 | PLATFORMS = "Any" |
|---|
| 14 | URL = "http://xitology.org/pysyck/" |
|---|
| 15 | DOWNLOAD_URL = URL + "%s-%s.tar.gz" % (NAME, VERSION) |
|---|
| 16 | CLASSIFIERS = [ |
|---|
| 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 | |
|---|
| 25 | from distutils.core import setup, Extension |
|---|
| 26 | |
|---|
| 27 | import sys |
|---|
| 28 | if sys.version < '2.2.4': |
|---|
| 29 | from distutils.dist import DistributionMetadata |
|---|
| 30 | DistributionMetadata.classifiers = None |
|---|
| 31 | DistributionMetadata.download_url = None |
|---|
| 32 | |
|---|
| 33 | import os |
|---|
| 34 | home = os.environ.get('HOME', '') |
|---|
| 35 | |
|---|
| 36 | setup( |
|---|
| 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 | |
|---|