Newer
Older
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'
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'],
test_suite='tests.setuptools_loader.setuptools_load_tests',
install_requires=['six>=1.10',
'enum34>=1.1.2;python_version<"3.4"', 'requests'],
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')