10000 Script should now use winpexpect if necessary. · Libardo1/stanford-corenlp-python@1ec5bb7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1ec5bb7

Browse files
committed
Script should now use winpexpect if necessary.
1 parent 8f0450f commit 1ec5bb7

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

setup.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
import sys
12
from setuptools import setup, find_packages
3+
import pdb
24

35
PACKAGE = "corenlp"
46
NAME = "stanford-corenlp-python"
@@ -7,7 +9,18 @@
79
AUTHOR_EMAIL = "aditi.shrikumar@gmail.com"
810
URL = "https://github.com/Wordseer/stanford-corenlp-python"
911
VERSION = "3.3.6-0"
12+
INSTALLATION_REQS = ["unidecode >= 0.04.12", "xmltodict >= 0.4.6"]
1013

14+
PEXPECT = "pexpect >= 2.4"
15+
WINPEXPECT = "winpexpect >= 1.5"
16+
17+
pdb.set_trace()
18+
19+
if "win" in sys.platform:
20+
INSTALLATION_REQS.append(WINPEXPECT)
21+
else:
22+
INSTALLATION_REQS.append(PEXPECT)
23+
1124
setup(
1225
name=NAME,
1326
version=VERSION,
@@ -18,11 +31,7 @@
1831
packages=find_packages(),
1932
package_data = {"": ["*.properties"],
2033
"corenlp": ["*.properties"]},
21-
install_requires=[
22-
"pexpect >= 2.4",
23-
"unidecode >= 0.04.12",
24-
"xmltodict >= 0.4.6",
25-
],
34+
install_requires=INSTALLATION_REQS,
2635
classifiers=[
2736
("License :: OSI Approved :: GNU General Public License v2 or later "
2837
"(GPLv2+)"),

0 commit comments

Comments
 (0)
0