Continue even if ext_suffix is None

This commit is contained in:
Daniel Wang 2018-07-19 18:43:58 -04:00
parent 9aa796422e
commit 5e1db92102
No known key found for this signature in database
GPG Key ID: 82968CE7F0EA634E
1 changed files with 3 additions and 1 deletions

View File

@ -78,6 +78,9 @@ class Config(object):
self.build_platlib = build_cmd.build_platlib
self.ext_suffix = sysconfig.get_config_var("EXT_SUFFIX")
if self.ext_suffix is None:
self.ext_suffix = ""
self.root = "klayout"
def libname_of(self, mod):
@ -85,7 +88,6 @@ class Config(object):
Returns the library name for a given module
The library name is usually decorated (i.e. "tl" -> "tl.cpython-35m-x86_64-linux-gnu.so").
"""
print
return mod + self.ext_suffix
def path_of(self, mod):