qscintilla: coherence with py-sip (#32128)
This commit is contained in:
parent
ab31256ee7
commit
f7424e1fea
1 changed files with 9 additions and 8 deletions
|
@ -152,11 +152,12 @@ def make_qsci(self):
|
|||
|
||||
@run_after("install")
|
||||
def extend_path_setup(self):
|
||||
# See github issue #14121 and PR #15297
|
||||
module = self.spec["py-sip"].variants["module"].value
|
||||
if module != "sip":
|
||||
module = module.split(".")[0]
|
||||
with working_dir(python_platlib):
|
||||
with open(os.path.join(module, "__init__.py"), "w") as f:
|
||||
f.write("from pkgutil import extend_path\n")
|
||||
f.write("__path__ = extend_path(__path__, __name__)\n")
|
||||
if self.spec["py-sip"].satisfies("@:4"):
|
||||
# See github issue #14121 and PR #15297
|
||||
module = self.spec["py-sip"].variants["module"].value
|
||||
if module != "sip":
|
||||
module = module.split(".")[0]
|
||||
with working_dir(python_platlib):
|
||||
with open(os.path.join(module, "__init__.py"), "w") as f:
|
||||
f.write("from pkgutil import extend_path\n")
|
||||
f.write("__path__ = extend_path(__path__, __name__)\n")
|
||||
|
|
Loading…
Reference in a new issue