Skip to content

Commit f653fd4

Browse files
authored
bpo-35296: make install now installs the internal API (GH-10665)
make install now also installs the internal API: Include/internal/*.h header files.
1 parent a1c4001 commit f653fd4

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Makefile.pre.in

+10
Original file line numberDiff line numberDiff line change
@@ -1446,11 +1446,21 @@ inclinstall:
14461446
else true; \
14471447
fi; \
14481448
done
1449+
@if test ! -d $(DESTDIR)$(INCLUDEPY)/internal; then \
1450+
echo "Creating directory $(DESTDIR)$(INCLUDEPY)/internal"; \
1451+
$(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(INCLUDEPY)/internal; \
1452+
else true; \
1453+
fi
14491454
@for i in $(srcdir)/Include/*.h; \
14501455
do \
14511456
echo $(INSTALL_DATA) $$i $(INCLUDEPY); \
14521457
$(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY); \
14531458
done
1459+
@for i in $(srcdir)/Include/internal/*.h; \
1460+
do \
1461+
echo $(INSTALL_DATA) $$i $(INCLUDEPY)/internal; \
1462+
$(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY)/internal; \
1463+
done
14541464
$(INSTALL_DATA) pyconfig.h $(DESTDIR)$(CONFINCLUDEPY)/pyconfig.h
14551465

14561466
# Install the library and miscellaneous stuff needed for extending/embedding
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
``make install`` now also installs the internal API:
2+
``Include/internal/*.h`` header files.

0 commit comments

Comments
 (0)