# coding: utf8 from setuptools import setup import os # Name of the enviromental variable that excludes the default storage file from # the distribution (to save space). # The *.egg-info directory must not exists for this hack to work. ENVNAME_DIST_NODEFAULT = 'PLWN_API_DIST_NO_DEFAULT_STORAGE' setup_args = dict( name='PLWN_API', version='0.24', license='LGPL-3.0+', description='Python API to access plWordNet lexicon', author='Michał Kaliński', author_email='michal.kalinski@pwr.edu.pl', packages=['plwn', 'plwn.readers', 'plwn.storages', 'plwn.utils'], package_data={'plwn.default': ['*.db'], 'plwn': ['config.ini']}, test_suite='tests.setuptools_loader.setuptools_load_tests', install_requires=['six>=1.10', 'enum34>=1.1.2;python_version<"3.4"', 'requests'], zip_safe=False, ) if __name__ == '__main__': # Include the "default storage" subpackage by default if not int(os.environ.get(ENVNAME_DIST_NODEFAULT, 0)): setup_args['packages'].append('plwn.default') setup(**setup_args)