File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change
1
+ import sys
1
2
from setuptools import setup , find_packages
3
+ import pdb
2
4
3
5
PACKAGE = "corenlp"
4
6
NAME = "stanford-corenlp-python"
7
9
AUTHOR_EMAIL = "aditi.shrikumar@gmail.com"
8
10
URL = "https://github.com/Wordseer/stanford-corenlp-python"
9
11
VERSION = "3.3.6-0"
12
+ INSTALLATION_REQS = ["unidecode >= 0.04.12" , "xmltodict >= 0.4.6" ]
10
13
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
+
11
24
setup (
12
25
name = NAME ,
13
26
version = VERSION ,
18
31
packages = find_packages (),
19
32
package_data = {"" : ["*.properties" ],
20
33
"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 ,
26
35
classifiers = [
27
36
("License :: OSI Approved :: GNU General Public License v2 or later "
28
37
"(GPLv2+)" ),
You can’t perform that action at this time.
0 commit comments