mirror of https://github.com/python/cpython
bpo-35296: make install now installs the internal API (GH-10665)
make install now also installs the internal API: Include/internal/*.h header files.
This commit is contained in:
parent
a1c4001408
commit
f653fd4d95
|
@ -1446,11 +1446,21 @@ inclinstall:
|
||||||
else true; \
|
else true; \
|
||||||
fi; \
|
fi; \
|
||||||
done
|
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; \
|
@for i in $(srcdir)/Include/*.h; \
|
||||||
do \
|
do \
|
||||||
echo $(INSTALL_DATA) $$i $(INCLUDEPY); \
|
echo $(INSTALL_DATA) $$i $(INCLUDEPY); \
|
||||||
$(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY); \
|
$(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY); \
|
||||||
done
|
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_DATA) pyconfig.h $(DESTDIR)$(CONFINCLUDEPY)/pyconfig.h
|
||||||
|
|
||||||
# Install the library and miscellaneous stuff needed for extending/embedding
|
# Install the library and miscellaneous stuff needed for extending/embedding
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
``make install`` now also installs the internal API:
|
||||||
|
``Include/internal/*.h`` header files.
|
Loading…
Reference in New Issue