https://github.com/python/cpython/commit/382340d5594a05d8a5362a06fe55119eec1d8e04
commit: 382340d5594a05d8a5362a06fe55119eec1d8e04
branch: main
author: Filipe Laíns 🇵🇸 <[email protected]>
committer: FFY00 <[email protected]>
date: 2025-01-20T20:41:27Z
summary:

doc: add social cards generation support in sphinxext-opengraph (#129085)

files:
A Doc/requirements-no-build.txt
M Doc/Makefile

diff --git a/Doc/Makefile b/Doc/Makefile
index b8896da4a91869..53af6aca659cef 100644
--- a/Doc/Makefile
+++ b/Doc/Makefile
@@ -13,7 +13,8 @@ JOBS         = auto
 PAPER        =
 SOURCES      =
 DISTVERSION  = $(shell $(PYTHON) tools/extensions/patchlevel.py)
-REQUIREMENTS = requirements.txt
+IS_PYTHON_BUILD = $(shell $(PYTHON) -c 'import sysconfig; print("true") if 
sysconfig.is_python_build() else None')
+REQUIREMENTS = $(if 
$(IS_PYTHON_BUILD),requirements.txt,requirements-no-build.txt)
 SPHINXERRORHANDLING = --fail-on-warning
 
 # Internal variables.
diff --git a/Doc/requirements-no-build.txt b/Doc/requirements-no-build.txt
new file mode 100644
index 00000000000000..8b3c4d410a75a3
--- /dev/null
+++ b/Doc/requirements-no-build.txt
@@ -0,0 +1,7 @@
+-r requirements.txt
+
+# Requirements when not running the build Python,
+# such as optional native extensions.
+
+# Needed to support generating social cards in sphinxext-opengraph.
+--only-binary matplotlib

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to