bpo-35296: make install now installs the internal API (GH-10665) (GH-… · python/cpython@b02774f

Original file line numberDiff line numberDiff line change

@@ -1443,11 +1443,21 @@ inclinstall:

14431443

else true; \

14441444

fi; \

14451445

done

1446+

@if test ! -d $(DESTDIR)$(INCLUDEPY)/internal; then \

1447+

echo "Creating directory $(DESTDIR)$(INCLUDEPY)/internal"; \

1448+

$(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(INCLUDEPY)/internal; \

1449+

else true; \

1450+

fi

14461451

@for i in $(srcdir)/Include/*.h; \

14471452

do \

14481453

echo $(INSTALL_DATA) $$i $(INCLUDEPY); \

14491454

$(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY); \

14501455

done

1456+

@for i in $(srcdir)/Include/internal/*.h; \

1457+

do \

1458+

echo $(INSTALL_DATA) $$i $(INCLUDEPY)/internal; \

1459+

$(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY)/internal; \

1460+

done

14511461

$(INSTALL_DATA) pyconfig.h $(DESTDIR)$(CONFINCLUDEPY)/pyconfig.h

14521462
14531463

# Install the library and miscellaneous stuff needed for extending/embedding