Skip to content

Commit 7bd67d1

Browse files
tiranvstinnererlend-aasland
authored
pythongh-93939: Add script to check extension modules (python#94545)
Add script ``Tools/scripts/check_modules.py`` to check and validate builtin and shared extension modules. The script also handles ``Modules/Setup`` and will eventually replace ``setup.py``. Co-authored-by: Victor Stinner <[email protected]> Co-authored-by: Erlend Egeberg Aasland <[email protected]>
1 parent fd76eb5 commit 7bd67d1

File tree

4 files changed

+504
-41
lines changed

4 files changed

+504
-41
lines changed

Makefile.pre.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,9 @@ oldsharedmods: $(SHAREDMODS) pybuilddir.txt
918918
fi; \
919919
done
920920

921+
checksharedmods: oldsharedmods sharedmods $(PYTHON_FOR_BUILD_DEPS)
922+
@$(RUNSHARED) $(PYTHON_FOR_BUILD) $(srcdir)/Tools/scripts/check_extension_modules.py
923+
921924
Modules/Setup.local:
922925
@# Create empty Setup.local when file was deleted by user
923926
echo "# Edit this file for local setup changes" > $@
@@ -2531,7 +2534,8 @@ update-config:
25312534
Python/thread.o: @THREADHEADERS@ $(srcdir)/Python/condvar.h
25322535

25332536
# Declare targets that aren't real files
2534-
.PHONY: all build_all build_wasm sharedmods check-clean-src oldsharedmods test quicktest
2537+
.PHONY: all build_all build_wasm sharedmods check-clean-src
2538+
.PHONY: oldsharedmods checksharedmods test quicktest
25352539
.PHONY: install altinstall oldsharedinstall bininstall altbininstall
25362540
.PHONY: maninstall libinstall inclinstall libainstall sharedinstall
25372541
.PHONY: frameworkinstall frameworkinstallframework frameworkinstallstructure
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Add script ``Tools/scripts/check_modules.py`` to check and validate builtin
2+
and shared extension modules. The script also handles ``Modules/Setup`` and
3+
will eventually replace ``setup.py``.

0 commit comments

Comments
 (0)