From ccb3628403d2b9cca9706a269f4ccf2d1f1adf1f Mon Sep 17 00:00:00 2001 From: wannaphongcom Date: Fri, 11 Dec 2015 14:01:36 +0700 Subject: [PATCH] add sgmllib3 for python3 sgmllib no have in python3. https://pypi.python.org/pypi/sgmllib3k --- setup.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 5199dd2c..a73a6c75 100644 --- a/setup.py +++ b/setup.py @@ -14,13 +14,21 @@ def version(): for line in input_file: if line.startswith('__version__'): return parse(line).body[0].value.s - -install_requires = ["beautifulsoup4", +if version_info[0] == 2: + install_requires = ["beautifulsoup4", "cherrypy", "docx", "feedparser", - "pdfminer" if version_info[0] == 2 else "pdfminer3k", + "pdfminer", "simplejson"] +else: + install_requires = ["beautifulsoup4", + "cherrypy", + "docx", + "feedparser", + "pdfminer3k", + "simplejson", + "sgmllib3k"] setup( name="pattern",