X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=setup.py;h=290f2e574a3a19d846fe8801d13efc58fbe88426;hb=07794a8efe6512dd65b98c692d35a1a41ed5683e;hp=3fb9cd557dc2bd7c349e5a3679d09602415746ce;hpb=1d582c7edc1296c83ff5dc18186c3f42221e3968;p=m_librarian.git diff --git a/setup.py b/setup.py index 3fb9cd5..290f2e5 100755 --- a/setup.py +++ b/setup.py @@ -15,6 +15,10 @@ except ImportError: from distutils.core import setup is_setuptools = False +kw = {} +if is_setuptools: + kw['install_requires'] = ['SQLObject>=2.2.1', 'm_lib>=2.0'] + versionpath = join(abspath(dirname(__file__)), 'm_librarian', '__version__.py') load_source('m_librarian_version', versionpath) from m_librarian_version import __version__ @@ -25,7 +29,7 @@ setup(name='m_librarian', long_description=open('README.txt', 'rtU').read(), author='Oleg Broytman', author_email='phd@phdru.name', - url='http://phdru.name/Software/Python/', + url='http://phdru.name/Software/Python/m_librarian/', license='GPL', platforms=['any'], keywords=['books', 'library', 'Flibusta', 'LibRusEc', 'lib.rus.ec'], @@ -37,12 +41,12 @@ setup(name='m_librarian', 'License :: OSI Approved :: GNU General Public License (GPL)', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 2 :: Only', ], packages=['m_librarian'], package_data={'m_librarian': ['glst/*.txt', 'glst/genres_*.glst']}, - scripts=['scripts/ml-import.py', 'scripts/ml-initdb.py'], - requires=['SQLObject', 'm_lib'], + scripts=['scripts/ml-import.py', 'scripts/ml-initdb.py', + 'scripts/ml-search.py'], + **kw )