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