Skip to content

Commit 25e0d16

Browse files
Merge pull request #13 from jamesclement1776/codex/fix-installation-error-for-python-module
Skip installing missing shared modules
2 parents ceb40f6 + bf7e2d0 commit 25e0d16

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

Makefile.pre.in

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2402,16 +2402,20 @@ sharedinstall: all
24022402
else true; \
24032403
fi; \
24042404
done
2405-
@for i in X $(SHAREDMODS); do \
2406-
if test $$i != X; then \
2407-
echo $(INSTALL_SHARED) $$i $(DESTSHARED)/`basename $$i`; \
2408-
$(INSTALL_SHARED) $$i $(DESTDIR)$(DESTSHARED)/`basename $$i`; \
2409-
if test -d "$$i.dSYM"; then \
2410-
echo $(DSYMUTIL_PATH) $(DESTDIR)$(DESTSHARED)/`basename $$i`; \
2411-
$(DSYMUTIL_PATH) $(DESTDIR)$(DESTSHARED)/`basename $$i`; \
2412-
fi; \
2413-
fi; \
2414-
done
2405+
@for i in X $(SHAREDMODS); do \
2406+
if test $$i != X; then \
2407+
if test ! -f $$i; then \
2408+
echo "Skipping installation of $$i because it was not built."; \
2409+
continue; \
2410+
fi; \
2411+
echo $(INSTALL_SHARED) $$i $(DESTSHARED)/`basename $$i`; \
2412+
$(INSTALL_SHARED) $$i $(DESTDIR)$(DESTSHARED)/`basename $$i`; \
2413+
if test -d "$$i.dSYM"; then \
2414+
echo $(DSYMUTIL_PATH) $(DESTDIR)$(DESTSHARED)/`basename $$i`; \
2415+
$(DSYMUTIL_PATH) $(DESTDIR)$(DESTSHARED)/`basename $$i`; \
2416+
fi; \
2417+
fi; \
2418+
done
24152419

24162420
# Install the interpreter with $(VERSION) affixed
24172421
# This goes into $(exec_prefix)

0 commit comments

Comments
 (0)