mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-13 18:56:36 +03:00
Merging Windows\Linux versions of setup.py
Python 3.0 compatibility fix
This commit is contained in:
parent
ccf6156261
commit
bf963c3cce
8
setup.py
8
setup.py
|
@ -22,18 +22,18 @@ link_options = {'msvc' : [] ,
|
||||||
class build_ext_options:
|
class build_ext_options:
|
||||||
def build_options(self):
|
def build_options(self):
|
||||||
c_type = None
|
c_type = None
|
||||||
if compile_options.has_key(self.compiler.compiler_type):
|
if self.compiler.compiler_type in compile_options:
|
||||||
c_type = self.compiler.compiler_type
|
c_type = self.compiler.compiler_type
|
||||||
elif compile_options.has_key('other'):
|
elif 'other' in compile_options:
|
||||||
c_type = 'other'
|
c_type = 'other'
|
||||||
if c_type is not None:
|
if c_type is not None:
|
||||||
for e in self.extensions:
|
for e in self.extensions:
|
||||||
e.extra_compile_args = compile_options[c_type]
|
e.extra_compile_args = compile_options[c_type]
|
||||||
|
|
||||||
l_type = None
|
l_type = None
|
||||||
if link_options.has_key(self.compiler.compiler_type):
|
if self.compiler.compiler_type in link_options:
|
||||||
l_type = self.compiler.compiler_type
|
l_type = self.compiler.compiler_type
|
||||||
elif link_options.has_key('other'):
|
elif 'other' in link_options:
|
||||||
l_type = 'other'
|
l_type = 'other'
|
||||||
if l_type is not None:
|
if l_type is not None:
|
||||||
for e in self.extensions:
|
for e in self.extensions:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user