/usr/local/Hypy

view setup.py @ 139:d0a738aea316

Added tag 0.8.4.1 for changeset bbc3e3a3c4fb
author Cory Dodt <corymercurial@spam.goonmill.org>
date Fri Oct 09 10:32:45 2009 -0700 (2009-10-09)
parents f18897205969
children
line source
1 #
2 import glob
3 import os
4 import re
6 try:
7 import setuptools
8 except ImportError:
9 from distribute_setup import use_setuptools
10 use_setuptools()
12 from setuptools import setup, Extension, find_packages
15 VERRX = re.compile(r'((\d+\.)+\d)\.txt$')
17 def versionFromReleaseNotes():
18 """
19 Hypy's official version is the latest version of the release notes found
20 in doc/release-notes.
21 """
22 thisDir = os.path.abspath(__file__).rsplit(os.sep, 1)[0]
23 if thisDir == __file__:
24 thisDir = os.path.abspath
26 versions = glob.glob(os.sep.join(
27 [thisDir, 'doc', 'release-notes', '[0-9]*.txt']))
28 if versions:
29 return VERRX.search(max(versions)).group(1)
30 else:
31 return 'VERSION_NOT_FOUND'
34 ext = Extension("_estraiernative",
35 ["estraiernative.c"],
36 libraries=["estraier"],
37 include_dirs=["/usr/include/estraier", "/usr/include/qdbm"],
38 )
40 setup(
41 name="Hypy",
42 description='Pythonic wrapper for Hyper Estraier',
43 author='Yusuke YOSHIDA',
44 author_email='usk@nrgate.jp',
45 maintainer='Cory Dodt',
46 maintainer_email='pypi@spam.goonmill.org',
47 url='http://goonmill.org/hypy/',
48 download_url='http://hypy-source.goonmill.org/archive/tip.tar.gz',
49 version=versionFromReleaseNotes(),
50 ext_modules=[ext],
51 zip_safe=False,
52 packages=find_packages(),
54 install_requires=[
55 'Distribute>=0.6.3',
56 ],
58 classifiers=[
59 'Development Status :: 4 - Beta',
60 'Environment :: Console',
61 'Environment :: Web Environment',
62 'Intended Audience :: Developers',
63 'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
64 'Operating System :: POSIX',
65 'Programming Language :: Python',
66 'Topic :: Software Development :: Libraries',
67 'Topic :: Internet :: WWW/HTTP :: Indexing/Search',
68 ],
69 )