diff options
author | Ned Deily <nad@acm.org> | 2011-06-28 07:42:50 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2011-06-28 07:42:50 (GMT) |
commit | 58f27b203c34ec81a14a8d73ce1d5fc5350946a9 (patch) | |
tree | 8749a987f5d50858edfd88186cae245e48c76043 /Makefile.pre.in | |
parent | 3eb67d58d61cec42c09242a7d801072c3e448dcf (diff) | |
download | cpython-58f27b203c34ec81a14a8d73ce1d5fc5350946a9.zip cpython-58f27b203c34ec81a14a8d73ce1d5fc5350946a9.tar.gz cpython-58f27b203c34ec81a14a8d73ce1d5fc5350946a9.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.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index 50ba086..b93e482 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -928,7 +928,7 @@ LIBSUBDIRS= tkinter tkinter/test tkinter/test/test_tkinter \ multiprocessing multiprocessing/dummy \ unittest unittest/test \ 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 \ @@ -984,6 +984,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 $(DESTDIR)$(LIBDEST)/compileall.py \ -d $(LIBDEST) -f \ |