Skip to content

Commit 4c89f77

Browse files
committed
Fix libinit
1 parent 85dcfd3 commit 4c89f77

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/semiwrap/makeplan.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def _process_extension_module(
252252
# Generate init.py for loading dependencies
253253
#
254254

255-
libinit_py = None
255+
libinit_module = None
256256
if libinit_modules:
257257
libinit_py = extension.libinit or f"_init_{module_name}.py"
258258
libinit_tgt = BuildTarget(
@@ -276,8 +276,8 @@ def _process_extension_module(
276276
self.pyproject_input,
277277
OutputFile(f"{varname}.pc"),
278278
]
279-
if libinit_py:
280-
pc_args += ["--libinit-py", libinit_py]
279+
if libinit_module:
280+
pc_args += ["--libinit-py", libinit_module]
281281

282282
yield BuildTarget(
283283
command="gen-pkgconf",

0 commit comments

Comments
 (0)