diff --git a/helpers/DATA/python-virtualenv/rm_python-pip_dependency.patch b/helpers/DATA/python-virtualenv/rm_python-pip_dependency.patch new file mode 100644 index 0000000..d555bb8 --- /dev/null +++ b/helpers/DATA/python-virtualenv/rm_python-pip_dependency.patch @@ -0,0 +1,24 @@ +diff --git a/debian/control b/debian/control_ +index 75143e1..e88cd28 100644 +--- a/debian/control ++++ b/debian/control_ +@@ -18,8 +18,6 @@ Build-Depends-Indep: python3-distlib (>= 0.3.1), + python3-distutils, + python3-filelock, + python3-importlib-metadata (>= 3.6), +- python3-pip, +- python3-pip-whl, + python3-platformdirs, + python3-setuptools, + python3-setuptools-scm, +@@ -31,9 +29,7 @@ Rules-Requires-Root: no + + Package: python3-virtualenv + Architecture: all +-Depends: python3-pip (>= 20.1-1~), +- python3-pip-whl, +- python3-setuptools-whl, ++Depends: python3-setuptools-whl, + python3-wheel-whl, + ${misc:Depends}, + ${python3:Depends}, diff --git a/helpers/make-python-virtualenv b/helpers/make-python-virtualenv new file mode 100644 index 0000000..ef73ee7 --- /dev/null +++ b/helpers/make-python-virtualenv @@ -0,0 +1,31 @@ +#!/bin/sh +# +# Copyright (C) 2024 Luis Guzmán +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# + +VERSION=0 +. ./config + +# Apply required patches +for patch in $(ls -v ${DATA}/*.patch) +do + echo "> Applying $(echo $patch|xargs basename)" + patch --no-backup-if-mismatch -Np1 < $patch +done + +changelog "Remove python3-pip dependency to install." +package