summaryrefslogtreecommitdiffstats
path: root/Tools/gdb
ModeNameSize
-rw-r--r--libpython.py57405logstatsplain
ption value='30'>30space:mode:
authorVictor Stinner <vstinner@python.org>2022-10-17 10:01:00 (GMT)
committerGitHub <noreply@github.com>2022-10-17 10:01:00 (GMT)
commit1863302d61a7a5dd8b8d345a00f0ee242c7c10bf (patch)
treea1e41af02147e2a14155d5b19d7b68bbb31c3f6f
parenteae7dad40255bad42e4abce53ff8143dcbc66af5 (diff)
downloadcpython-1863302d61a7a5dd8b8d345a00f0ee242c7c10bf.zip
cpython-1863302d61a7a5dd8b8d345a00f0ee242c7c10bf.tar.gz
cpython-1863302d61a7a5dd8b8d345a00f0ee242c7c10bf.tar.bz2
gh-97669: Create Tools/build/ directory (#97963)
Create Tools/build/ directory. Move the following scripts from Tools/scripts/ to Tools/build/: * check_extension_modules.py * deepfreeze.py * freeze_modules.py * generate_global_objects.py * generate_levenshtein_examples.py * generate_opcode_h.py * generate_re_casefix.py * generate_sre_constants.py * generate_stdlib_module_names.py * generate_token.py * parse_html5_entities.py * smelly.py * stable_abi.py * umarshal.py * update_file.py * verify_ensurepip_wheels.py Update references to these scripts.
Diffstat
-rw-r--r--.github/CODEOWNERS2
-rw-r--r--.github/workflows/verify-ensurepip-wheels.yml6
-rw-r--r--.gitignore2
-rw-r--r--Doc/library/token-list.inc2
-rw-r--r--Include/internal/pycore_global_strings.h4
-rw-r--r--Include/internal/pycore_opcode.h2
-rw-r--r--Include/internal/pycore_runtime_init_generated.h2
-rw-r--r--Include/internal/pycore_token.h2
-rw-r--r--Include/opcode.h2
-rw-r--r--Lib/html/entities.py2
-rw-r--r--Lib/token.py2
-rw-r--r--Makefile.pre.in62
-rw-r--r--Misc/stable_abi.toml2
-rw-r--r--Modules/_sre/sre_constants.h2
-rw-r--r--Modules/_sre/sre_targets.h2
-rwxr-xr-xPC/python3dll.c2
-rw-r--r--PCbuild/_freeze_module.vcxproj2
-rw-r--r--PCbuild/regen.targets8
-rw-r--r--Parser/token.c2
-rw-r--r--Programs/_bootstrap_python.c2
-rw-r--r--Programs/_freeze_module.c2
-rw-r--r--Python/deepfreeze/README.txt2
-rw-r--r--Python/frozen.c2
-rw-r--r--Python/frozen_modules/README.txt2
-rw-r--r--Python/stdlib_module_names.h2
-rw-r--r--Tools/build/check_extension_modules.py (renamed from Tools/scripts/check_extension_modules.py)0
-rw-r--r--Tools/build/deepfreeze.py (renamed from Tools/scripts/deepfreeze.py)0
-rw-r--r--Tools/build/freeze_modules.py (renamed from Tools/scripts/freeze_modules.py)4
-rw-r--r--Tools/build/generate_global_objects.py (renamed from Tools/scripts/generate_global_objects.py)3
-rw-r--r--Tools/build/generate_levenshtein_examples.py (renamed from Tools/scripts/generate_levenshtein_examples.py)0
-rw-r--r--Tools/build/generate_opcode_h.py (renamed from Tools/scripts/generate_opcode_h.py)2
-rwxr-xr-xTools/build/generate_re_casefix.py (renamed from Tools/scripts/generate_re_casefix.py)6
-rwxr-xr-xTools/build/generate_sre_constants.py (renamed from Tools/scripts/generate_sre_constants.py)6
-rw-r--r--Tools/build/generate_stdlib_module_names.py (renamed from Tools/scripts/generate_stdlib_module_names.py)4
-rwxr-xr-xTools/build/generate_token.py (renamed from Tools/scripts/generate_token.py)25
-rwxr-xr-xTools/build/parse_html5_entities.py (renamed from Tools/scripts/parse_html5_entities.py)3
-rwxr-xr-xTools/build/smelly.py (renamed from Tools/scripts/smelly.py)0
-rw-r--r--[-rwxr-xr-x]Tools/build/stable_abi.py (renamed from Tools/scripts/stable_abi.py)11
-rw-r--r--Tools/build/umarshal.py (renamed from Tools/scripts/umarshal.py)0
-rw-r--r--Tools/build/update_file.py (renamed from Tools/scripts/update_file.py)0
-rwxr-xr-xTools/build/verify_ensurepip_wheels.py (renamed from Tools/scripts/verify_ensurepip_wheels.py)0
41 files changed, 102 insertions, 84 deletions
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 585589d..2fd933a 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -55,7 +55,7 @@ Python/traceback.c @iritkatriel
/Lib/html/ @ezio-melotti
/Lib/_markupbase.py @ezio-melotti
/Lib/test/test_html*.py @ezio-melotti
-/Tools/scripts/*html5* @ezio-melotti
+/Tools/build/parse_html5_entities.py @ezio-melotti
# Import (including importlib).
# Ignoring importlib.h so as to not get flagged on
diff --git a/.github/workflows/verify-ensurepip-wheels.yml b/.github/workflows/verify-ensurepip-wheels.yml
index 9f4754f..969515e 100644
--- a/.github/workflows/verify-ensurepip-wheels.yml
+++ b/.github/workflows/verify-ensurepip-wheels.yml
@@ -6,12 +6,12 @@ on:
paths:
- 'Lib/ensurepip/_bundled/**'
- '.github/workflows/verify-ensurepip-wheels.yml'
- - 'Tools/scripts/verify_ensurepip_wheels.py'
+ - 'Tools/build/verify_ensurepip_wheels.py'
pull_request:
paths:
- 'Lib/ensurepip/_bundled/**'
- '.github/workflows/verify-ensurepip-wheels.yml'
- - 'Tools/scripts/verify_ensurepip_wheels.py'
+ - 'Tools/build/verify_ensurepip_wheels.py'
permissions:
contents: read
@@ -29,4 +29,4 @@ jobs:
with:
python-version: '3'
- name: Compare checksums of bundled pip and setuptools to ones published on PyPI
- run: ./Tools/scripts/verify_ensurepip_wheels.py
+ run: ./Tools/build/verify_ensurepip_wheels.py
diff --git a/.gitignore b/.gitignore
index 924c136..6934faa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -143,7 +143,7 @@ Tools/ssl/win32
Tools/freeze/test/outdir
# The frozen modules are always generated by the build so we don't
-# keep them in the repo. Also see Tools/scripts/freeze_modules.py.
+# keep them in the repo. Also see Tools/build/freeze_modules.py.
Python/frozen_modules/*.h
# The manifest can be generated at any time with "make regen-frozen".
Python/frozen_modules/MANIFEST
diff --git a/Doc/library/token-list.inc b/Doc/library/token-list.inc
index 1a99f05..2739d5b 100644
--- a/Doc/library/token-list.inc
+++ b/Doc/library/token-list.inc
@@ -1,4 +1,4 @@
-.. Auto-generated by Tools/scripts/generate_token.py
+.. Auto-generated by Tools/build/generate_token.py
.. data:: ENDMARKER
.. data:: NAME
diff --git a/Include/internal/pycore_global_strings.h b/Include/internal/pycore_global_strings.h
index f646979..811cfc1 100644
--- a/Include/internal/pycore_global_strings.h
+++ b/Include/internal/pycore_global_strings.h
@@ -8,7 +8,7 @@ extern "C" {
# error "this header requires Py_BUILD_CORE define"
#endif
-// The data structure & init here are inspired by Tools/scripts/deepfreeze.py.
+// The data structure & init here are inspired by Tools/build/deepfreeze.py.
// All field names generated by ASCII_STR() have a common prefix,
// to help avoid collisions with keywords, etc.
@@ -25,7 +25,7 @@ extern "C" {
// XXX Order by frequency of use?
-/* The following is auto-generated by Tools/scripts/generate_global_objects.py. */
+/* The following is auto-generated by Tools/build/generate_global_objects.py. */
struct _Py_global_strings {
struct {
STRUCT_FOR_STR(anon_dictcomp, "<dictcomp>")
diff --git a/Include/internal/pycore_opcode.h b/Include/internal/pycore_opcode.h
index 1592551..c8ef5dd 100644
--- a/Include/internal/pycore_opcode.h
+++ b/Include/internal/pycore_opcode.h
@@ -1,4 +1,4 @@
-// Auto-generated by Tools/scripts/generate_opcode_h.py from Lib/opcode.py
+// Auto-generated by Tools/build/generate_opcode_h.py from Lib/opcode.py
#ifndef Py_INTERNAL_OPCODE_H
#define Py_INTERNAL_OPCODE_H
diff --git a/Include/internal/pycore_runtime_init_generated.h b/Include/internal/pycore_runtime_init_generated.h
index bd1fede..8ce9588 100644
--- a/Include/internal/pycore_runtime_init_generated.h
+++ b/Include/internal/pycore_runtime_init_generated.h
@@ -8,7 +8,7 @@ extern "C" {
# error "this header requires Py_BUILD_CORE define"
#endif
-/* The following is auto-generated by Tools/scripts/generate_global_objects.py. */
+/* The following is auto-generated by Tools/build/generate_global_objects.py. */
#define _Py_global_objects_INIT { \
.singletons = { \
.small_ints = { \
diff --git a/Include/internal/pycore_token.h b/Include/internal/pycore_token.h
index f9b8240..95459ab 100644
--- a/Include/internal/pycore_token.h
+++ b/Include/internal/pycore_token.h
@@ -1,4 +1,4 @@
-/* Auto-generated by Tools/scripts/generate_token.py */
+/* Auto-generated by Tools/build/generate_token.py */
/* Token types */
#ifndef Py_INTERNAL_TOKEN_H
diff --git a/Include/opcode.h b/Include/opcode.h
index 42825df..0871eb1 100644
--- a/Include/opcode.h
+++ b/Include/opcode.h
@@ -1,4 +1,4 @@
-// Auto-generated by Tools/scripts/generate_opcode_h.py from Lib/opcode.py
+// Auto-generated by Tools/build/generate_opcode_h.py from Lib/opcode.py
#ifndef Py_OPCODE_H
#define Py_OPCODE_H
diff --git a/Lib/html/entities.py b/Lib/html/entities.py
index cc59bc3..eb6dc12 100644
--- a/Lib/html/entities.py
+++ b/Lib/html/entities.py
@@ -261,7 +261,7 @@ name2codepoint = {
# HTML5 named character references
-# Generated by 'Tools/scripts/parse_html5_entities.py'
+# Generated by Tools/build/parse_html5_entities.py
# from https://html.spec.whatwg.org/entities.json and
# https://html.spec.whatwg.org/multipage/named-characters.html.
# Map HTML5 named character references to the equivalent Unicode character(s).
diff --git a/Lib/token.py b/Lib/token.py
index 9d0c0bf..95b107c 100644
--- a/Lib/token.py
+++ b/Lib/token.py