diff options
author | Ned Deily <nad@acm.org> | 2011-06-28 07:53:54 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2011-06-28 07:53:54 (GMT) |
commit | 4a1ec129996c730556ad9fe9d92062b4ba5dadfc (patch) | |
tree | 8301eb1425136fac8b657b816ef61316a13b6528 /Makefile.pre.in | |
parent | 8b56c4b1b82898ffd7e6337c39068c93e21e8d31 (diff) | |
parent | 58f27b203c34ec81a14a8d73ce1d5fc5350946a9 (diff) | |
download | cpython-4a1ec129996c730556ad9fe9d92062b4ba5dadfc.zip cpython-4a1ec129996c730556ad9fe9d92062b4ba5dadfc.tar.gz cpython-4a1ec129996c730556ad9fe9d92062b4ba5dadfc.tar.bz2 |
Issue #12141: Install copies of template C module file so that
test_build_ext of test_distutils and test_command_build_ext of
test_packaging are no longer silently skipped when
run outside of a build directory.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r-- | Makefile.pre.in | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index 8ed1590..99df1c1 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -982,7 +982,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 \ @@ -1038,6 +1038,14 @@ 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 + if test -d $(DESTDIR)$(LIBDEST)/packaging/tests; then \ + $(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \ + $(DESTDIR)$(LIBDEST)/packaging/tests ; \ + fi -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ ./$(BUILDPYTHON) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \ -d $(LIBDEST) -f \ |