[Python-checkins] bpo-39144 Align ctags and etags behaviours in the makefile and include Python stdlib files (GH-17721)

Miss Islington (bot) webhook-mailer at python.org
Fri Dec 27 21:50:39 EST 2019


https://github.com/python/cpython/commit/2786fdec79c35b4a68afea2bbbedbba3b6eb2269
commit: 2786fdec79c35b4a68afea2bbbedbba3b6eb2269
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-12-27T18:50:34-08:00
summary:

bpo-39144 Align ctags and etags behaviours in the makefile and include Python stdlib files (GH-17721)

(cherry picked from commit ef7eaafc9d2e370cf79b3674e56f643bbfe239e2)

Co-authored-by: Anthony Shaw <anthony.p.shaw at gmail.com>

files:
A Misc/NEWS.d/next/Build/2019-12-27-22-18-26.bpo-39144.dwHMlR.rst
M Makefile.pre.in

diff --git a/Makefile.pre.in b/Makefile.pre.in
index 502317aa0c783..a914a9c70f679 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -1725,6 +1725,7 @@ tags::
 	ctags -w $(srcdir)/Include/*.h $(srcdir)/Include/cpython/*.h $(srcdir)/Include/internal/*.h
 	for i in $(SRCDIRS); do ctags -f tags -w -a $(srcdir)/$$i/*.[ch]; done
 	ctags -f tags -w -a $(srcdir)/Modules/_ctypes/*.[ch]
+	find $(srcdir)/Lib -type f -name "*.py" -not -name "test_*.py" -not -path "*/test/*" -not -path "*/tests/*" -not -path "*/*_test/*" | ctags -f tags -w -a -L -
 	LC_ALL=C sort -o tags tags
 
 # Create a tags file for GNU Emacs
@@ -1732,6 +1733,8 @@ TAGS::
 	cd $(srcdir); \
 	etags Include/*.h Include/cpython/*.h Include/internal/*.h; \
 	for i in $(SRCDIRS); do etags -a $$i/*.[ch]; done
+	etags -a $(srcdir)/Modules/_ctypes/*.[ch]
+	find $(srcdir)/Lib -type f -name "*.py" -not -name "test_*.py" -not -path "*/test/*" -not -path "*/tests/*" -not -path "*/*_test/*" | etags - -a
 
 # Sanitation targets -- clean leaves libraries, executables and tags
 # files, which clobber removes as well
diff --git a/Misc/NEWS.d/next/Build/2019-12-27-22-18-26.bpo-39144.dwHMlR.rst b/Misc/NEWS.d/next/Build/2019-12-27-22-18-26.bpo-39144.dwHMlR.rst
new file mode 100644
index 0000000000000..8b90da19622e6
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2019-12-27-22-18-26.bpo-39144.dwHMlR.rst
@@ -0,0 +1 @@
+The ctags and etags build targets both include Modules/_ctypes and Python standard library source files.
\ No newline at end of file



More information about the Python-checkins mailing list