Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to 24.1.2 #29

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion recipe/bld.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
%PYTHON% setup.py install --single-version-externally-managed --record record.txt
if "%BOOTSTRAP_FROM_WHL%"=="yes" (
set PYTHONPATH=".\pip-%PKG_VERSION%-py3-none-any.whl"
%PYTHON% -m pip install --no-cache-dir --no-index --no-index --find-links . pip
) else (
set PYTHONPATH=".\src"
%PYTHON% -m pip install . --no-deps --no-build-isolation -vv
)
if errorlevel 1 exit 1

cd %SCRIPTS%
Expand Down
13 changes: 11 additions & 2 deletions recipe/build.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
#!/bin/bash

$PYTHON setup.py install --single-version-externally-managed --record record.txt
if [[ ${BOOTSTRAP_FROM_WHL} == yes ]]; then
# use the pip wheel to install itself
export PYTHONPATH='./pip-${PKG_VERSION}-py3-none-any.whl'
$PYTHON -m pip install --no-cache-dir --no-index --no-index --find-links . pip
else
# use the pip source to install itself
export PYTHONPATH="./src"
$PYTHON -m pip install . --no-deps --no-build-isolation -vv
fi


cd $PREFIX/bin
rm -f pip2* pip3*
rm -f $SP_DIR/__pycache__/pkg_res*
# Remove all bundled .exe files courtesy of distlib.
rm -f $SP_DIR/pip/_vendor/distlib/*.exe
rm -f $SP_DIR/pip/_vendor/distlib/*.exe
22 changes: 17 additions & 5 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{% set version = "24.0" %}
{% set version = "24.1.2" %}

# When bootstrapping a new Python version build pip from a wheel.
# Otherwise build from the source distribution.
{% set bootstrap = "no" %}

# make sure to set CONDA_ADD_PIP_AS_PYTHON_DEPENDENCY=0 environ-variable before building it

Expand All @@ -7,26 +11,34 @@ package:
version: {{ version }}

source:
{% if bootstrap != "yes" %}
url: https://pypi.io/packages/source/p/pip/pip-{{ version }}.tar.gz
sha256: ea9bd1a847e8c5774a5777bb398c19e80bcd4e2aa16a4b301b718fe6f593aba2
sha256: e5458a0b89f2755e0ee8c0c77613fe5273e05f337907874d64f13171a898a7ff
{% else %}
url: https://files.pythonhosted.org/packages/py3/p/pip/pip-{{ version }}-py3-none-any.whl
sha256: 7cd207eed4c60b0f411b444cd1464198fe186671c323b6cd6d433ed80fc9d247
{% endif %}


build:
number: 0
disable_pip: true
skip: True # [py<37]
skip: True # [py<38]
entry_points:
- pip = pip._internal.cli.main:main
- pip3 = pip._internal.cli.main:main
script_env:
- BOOTSTRAP_FROM_WHL={{ bootstrap }}

requirements:
host:
- python
{% if bootstrap != "yes" %}
- setuptools >=67.6.1
- wheel
{% endif %}
run:
- python
- setuptools
- wheel

test:
commands:
Expand Down