summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2011-06-28 07:39:19 (GMT)
committerNed Deily <nad@acm.org>2011-06-28 07:39:19 (GMT)
commit63144c6444e34281398b4441d1f9321116943aa9 (patch)
treea8299390d07db4392c75624974e998a411ed09e8 /Makefile.pre.in
parent43e1054e38ebd3de91b51531cda8e2fd580c0207 (diff)
downloadcpython-63144c6444e34281398b4441d1f9321116943aa9.zip
cpython-63144c6444e34281398b4441d1f9321116943aa9.tar.gz
cpython-63144c6444e34281398b4441d1f9321116943aa9.tar.bz2
Issue #12141: Install a copy of template C module file so that
test_build_ext of test_distutils is no longer silently skipped when run outside of a build directory.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index ed0d116..059d716 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -869,7 +869,7 @@ LIBSUBDIRS= lib-tk lib-tk/test lib-tk/test/test_tkinter \
unittest unittest/test \
lib-old \
curses pydoc_data $(MACHDEPS)
-libinstall: build_all $(srcdir)/Lib/$(PLATDIR)
+libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c
@for i in $(SCRIPTDIR) $(LIBDEST); \
do \
if test ! -d $(DESTDIR)$$i; then \
@@ -925,6 +925,10 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR)
done; \
done
$(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt
+ if test -d $(DESTDIR)$(LIBDEST)/distutils/tests; then \
+ $(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \
+ $(DESTDIR)$(LIBDEST)/distutils/tests ; \
+ fi
PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
./$(BUILDPYTHON) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \
-d $(LIBDEST) -f \