Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make imports modular #222

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 23 additions & 14 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@

from __future__ import print_function

import sys
import os

import sys
from io import open

from setuptools import setup

from pattern import __version__

IS_PYTHON2 = sys.version_info[0] < 3

#---------------------------------------------------------------------------------------------------
# "python setup.py zip" will create the zipped distribution and checksum.

Expand Down Expand Up @@ -130,19 +131,27 @@
"Topic :: Text Processing :: Linguistic",
"Topic :: Text Processing :: Markup :: HTML"
],
install_requires = [
extra_requires={
"wordnet": ["nltk"],
"server": [
"mysqlclient",
"cherrypy"
],
"web": [
"beautifulsoup4",
"feedparser",
"lxml",
"python-docx"
] + [
"pdfminer"
] if IS_PYTHON2 else [ "pdfminer.six"]
},
install_requires=[
"numpy",
"scipy"
] + [
"future",
"backports.csv",
"mysqlclient",
"beautifulsoup4",
"lxml",
"feedparser",
"pdfminer" if sys.version < "3" else "pdfminer.six",
"numpy",
"scipy",
"nltk",
"python-docx",
"cherrypy"
],
] if IS_PYTHON2 else [],
zip_safe = False
)