Skip to content

Commit 382340d

Browse files
authored
doc: add social cards generation support in sphinxext-opengraph (#129085)
1 parent da36bcc commit 382340d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Doc/Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ JOBS = auto
1313
PAPER =
1414
SOURCES =
1515
DISTVERSION = $(shell $(PYTHON) tools/extensions/patchlevel.py)
16-
REQUIREMENTS = requirements.txt
16+
IS_PYTHON_BUILD = $(shell $(PYTHON) -c 'import sysconfig; print("true") if sysconfig.is_python_build() else None')
17+
REQUIREMENTS = $(if $(IS_PYTHON_BUILD),requirements.txt,requirements-no-build.txt)
1718
SPHINXERRORHANDLING = --fail-on-warning
1819

1920
# Internal variables.

Doc/requirements-no-build.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
-r requirements.txt
2+
3+
# Requirements when not running the build Python,
4+
# such as optional native extensions.
5+
6+
# Needed to support generating social cards in sphinxext-opengraph.
7+
--only-binary matplotlib

0 commit comments

Comments
 (0)