]> granicus.if.org Git - python/commitdiff
bpo-35296: make install now installs the internal API (GH-10665)
authorVictor Stinner <vstinner@redhat.com>
Fri, 23 Nov 2018 15:30:12 +0000 (16:30 +0100)
committerGitHub <noreply@github.com>
Fri, 23 Nov 2018 15:30:12 +0000 (16:30 +0100)
make install now also installs the internal API: Include/internal/*.h
header files.

Makefile.pre.in
Misc/NEWS.d/next/C API/2018-11-22-18-34-23.bpo-35296.nxrIQt.rst [new file with mode: 0644]

index 2b5afae3762c534e08e98bcf83109d387f9f5232..5a21adb7e9b18123250625085e27a027c5e4050d 100644 (file)
@@ -1446,11 +1446,21 @@ inclinstall:
                else    true; \
                fi; \
        done
+       @if test ! -d $(DESTDIR)$(INCLUDEPY)/internal; then \
+               echo "Creating directory $(DESTDIR)$(INCLUDEPY)/internal"; \
+               $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(INCLUDEPY)/internal; \
+       else    true; \
+       fi
        @for i in $(srcdir)/Include/*.h; \
        do \
                echo $(INSTALL_DATA) $$i $(INCLUDEPY); \
                $(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY); \
        done
+       @for i in $(srcdir)/Include/internal/*.h; \
+       do \
+               echo $(INSTALL_DATA) $$i $(INCLUDEPY)/internal; \
+               $(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY)/internal; \
+       done
        $(INSTALL_DATA) pyconfig.h $(DESTDIR)$(CONFINCLUDEPY)/pyconfig.h
 
 # Install the library and miscellaneous stuff needed for extending/embedding
diff --git a/Misc/NEWS.d/next/C API/2018-11-22-18-34-23.bpo-35296.nxrIQt.rst b/Misc/NEWS.d/next/C API/2018-11-22-18-34-23.bpo-35296.nxrIQt.rst
new file mode 100644 (file)
index 0000000..c5f877a
--- /dev/null
@@ -0,0 +1,2 @@
+``make install`` now also installs the internal API:
+``Include/internal/*.h`` header files.