]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39144 Align ctags and etags behaviours in the makefile and include Python stdlib...
authorAnthony Shaw <anthony.p.shaw@gmail.com>
Sat, 28 Dec 2019 02:32:48 +0000 (13:32 +1100)
committerPablo Galindo <Pablogsal@gmail.com>
Sat, 28 Dec 2019 02:32:48 +0000 (02:32 +0000)
Makefile.pre.in
Misc/NEWS.d/next/Build/2019-12-27-22-18-26.bpo-39144.dwHMlR.rst [new file with mode: 0644]

index d08c78df394b3754ccfe04bb35762c4917ac1941..cfe42b4f21ecbdd974872a20120fc0c3b3ae6420 100644 (file)
@@ -1730,6 +1730,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
@@ -1737,6 +1738,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 (file)
index 0000000..8b90da1
--- /dev/null
@@ -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