# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/python-pip/python-pip.conf # Copyright (C) 2023 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- pip_preconf() { # Remove certifi usage sed -i 's|from pip._vendor.certifi import where|where = lambda: "/etc/ssl/certs/ca-certificates.crt"|' src/pip/_internal/commands/debug.py # Do not use furo as HTML theme in docs sed -i '/html_theme = "furo"/d' docs/html/conf.py # only target Python 3 sed -i 's/csv23/csv/g' tests/lib/wheel.py # not packaged (and has another ~5 deps), and not actually used it seems # (maybe for html docs) sed -i '/sphinxcontrib.towncrier/d' docs/html/conf.py } hook_add preconf 5 pip_preconf