Merge pull request #263294 from mweinelt/remove-bootstrapped-pip

python311Packages.bootstrapped-pip: remove

authored by Martin Weinelt and committed by GitHub 2e875f01 a99cbd99

-71
-69
pkgs/development/python-modules/bootstrapped-pip/default.nix
··· 1 - { lib, stdenv, python, makeWrapper, unzip 2 - , pipInstallHook 3 - , setuptoolsBuildHook 4 - , wheel, pip, setuptools 5 - }: 6 - 7 - stdenv.mkDerivation rec { 8 - pname = "pip"; 9 - inherit (pip) version; 10 - name = "${python.libPrefix}-bootstrapped-${pname}-${version}"; 11 - 12 - srcs = [ wheel.src pip.src setuptools.src ]; 13 - sourceRoot = "."; 14 - 15 - dontUseSetuptoolsBuild = true; 16 - dontUsePipInstall = true; 17 - 18 - # Should be propagatedNativeBuildInputs 19 - propagatedBuildInputs = [ 20 - # Override to remove dependencies to prevent infinite recursion. 21 - (pipInstallHook.override{pip=null;}) 22 - (setuptoolsBuildHook.override{setuptools=null; wheel=null;}) 23 - ]; 24 - 25 - postPatch = '' 26 - mkdir -p $out/bin 27 - '' + (pip.postPatch or ""); # `pip` does not necessarily have a `postPatch` field. 28 - 29 - nativeBuildInputs = [ makeWrapper unzip ]; 30 - buildInputs = [ python ]; 31 - 32 - dontBuild = true; 33 - 34 - installPhase = lib.optionalString (!stdenv.hostPlatform.isWindows) '' 35 - export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0 36 - '' + '' 37 - # Give folders a known name 38 - mv pip* pip 39 - mv setuptools* setuptools 40 - mv wheel* wheel 41 - # Set up PYTHONPATH: 42 - # - pip and setuptools need to be in PYTHONPATH to install setuptools, wheel, and pip. 43 - # - $out is where we are installing to and takes precedence, and is where wheel will end so we can install pip. 44 - export PYTHONPATH="$out/${python.sitePackages}:$(pwd)/pip/src:$(pwd)/setuptools:$(pwd)/setuptools/pkg_resources:$PYTHONPATH" 45 - 46 - echo "Building setuptools wheel..." 47 - pushd setuptools 48 - rm pyproject.toml 49 - ${python.pythonForBuild.interpreter} -m pip install --no-build-isolation --no-index --prefix=$out --ignore-installed --no-dependencies --no-cache . 50 - popd 51 - 52 - echo "Building wheel wheel..." 53 - pushd wheel 54 - ${python.pythonForBuild.interpreter} -m pip install --no-build-isolation --no-index --prefix=$out --ignore-installed --no-dependencies --no-cache . 55 - popd 56 - 57 - echo "Building pip wheel..." 58 - pushd pip 59 - rm pyproject.toml 60 - ${python.pythonForBuild.interpreter} -m pip install --no-build-isolation --no-index --prefix=$out --ignore-installed --no-dependencies --no-cache . 61 - popd 62 - ''; 63 - 64 - meta = { 65 - description = "Version of pip used for bootstrapping"; 66 - license = lib.unique (pip.meta.license ++ setuptools.meta.license ++ wheel.meta.license); 67 - homepage = pip.meta.homepage; 68 - }; 69 - }
-2
pkgs/top-level/python-packages.nix
··· 18 18 }); 19 19 }; 20 20 21 - bootstrapped-pip = toPythonModule (callPackage ../development/python-modules/bootstrapped-pip { }); 22 - 23 21 setuptools = callPackage ../development/python-modules/setuptools { }; 24 22 25 23 a2wsgi = callPackage ../development/python-modules/a2wsgi { };