-
-
Save interrogator/f497105a8e322809b438 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from setuptools import setup, find_packages | |
from setuptools.command.install import install | |
class install_with_nltk_extras(install): | |
"""Customized setuptools install command - prints a friendly greeting.""" | |
def run(self): | |
install.run(self) | |
import nltk | |
nltk.download('punkt') | |
nltk.download('wordnet') | |
def install_with pip(package): | |
import importlib | |
try: | |
importlib.import_module(package) | |
except ImportError: | |
import pip | |
pip.main(['install', package]) | |
install_with_pip('git+git://github.com/interrogator/corenlp-xml-lib.git') | |
setup(name='corpkit', | |
version='1.48', | |
description='A toolkit for working with linguistic corpora', | |
url='http://github.com/interrogator/corpkit', | |
author='Daniel McDonald', | |
package_data={'corpkit': ['*.jar', 'corpkit/*.jar', '*.sh', 'corpkit/*.sh', | |
'*.ipynb', 'corpkit/*.ipynb'], | |
'dictionaries': ['*.p', 'dictionaries/*.p']}, | |
author_email='mcdonaldd@unimelb.edu.au', | |
license='MIT', | |
cmdclass={ | |
'install': install_with_nltk_extras}, | |
packages=['corpkit', 'dictionaries'], | |
install_requires=["matplotlib >= 1.4.3", | |
"nltk >= 3.0.0", | |
"pandas >= 0.16.1", | |
"mpld3 >= 0.2", | |
"beautifulsoup4>=4.3.2", | |
"lxml>=3.4.4", | |
"PIL>=1.1.7", | |
"tkintertable>=1.2"], | |
zip_safe = False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment