14
0

Accepting request 1191413 from home:benoit_monin:branches:devel:languages:python

fix build by forcing pip to use the prebuilt CA bundle

OBS-URL: https://build.opensuse.org/request/show/1191413
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pygments?expand=0&rev=117
This commit is contained in:
2024-08-09 08:55:04 +00:00
committed by Git OBS Bridge
parent 4e3daffee3
commit 005c61b4ee
2 changed files with 9 additions and 0 deletions

View File

@@ -74,9 +74,13 @@ source code. Highlights are:
chmod -x pygments/formatters/_mapping.py pygments/lexers/gsql.py
%build
# Point pip to the prebuilt CA bundle
export _PIP_STANDALONE_CERT=/usr/share/factory/var/lib/ca-certificates/ca-bundle.pem
%pyproject_wheel
%install
# Point pip to the prebuilt CA bundle
export _PIP_STANDALONE_CERT=/usr/share/factory/var/lib/ca-certificates/ca-bundle.pem
%pyproject_install
install -Dm0644 doc/pygmentize.1 %{buildroot}%{_mandir}/man1/pygmentize.1
%python_clone -a %{buildroot}%{_bindir}/pygmentize