Skip to content

Commit

Permalink
Merge pull request #25 from isuruf/pypy
Browse files Browse the repository at this point in the history
Miniforge with PyPy
  • Loading branch information
isuruf authored Mar 17, 2020
2 parents 7a75846 + 9620c9e commit 7d5fba0
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 5 deletions.
28 changes: 27 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,49 @@ matrix:
- ARCH=aarch64
- DOCKER_ARCH=arm64v8
- DOCKERIMAGE=condaforge/linux-anvil-aarch64
- MINIFORGE_NAME="Miniforge3"

- os: linux
env:
- ARCH=x86_64
- DOCKER_ARCH=amd64
- DOCKERIMAGE=condaforge/linux-anvil-comp7
- MINIFORGE_NAME="Miniforge3"

- os: linux
env:
- ARCH=ppc64le
- DOCKER_ARCH=ppc64le
- DOCKERIMAGE=condaforge/linux-anvil-ppc64le
- MINIFORGE_NAME="Miniforge3"

- os: linux
env:
- ARCH=aarch64
- DOCKER_ARCH=arm64v8
- DOCKERIMAGE=condaforge/linux-anvil-aarch64
- MINIFORGE_NAME="Miniforge-pypy3"

- os: linux
env:
- ARCH=x86_64
- DOCKER_ARCH=amd64
- DOCKERIMAGE=condaforge/linux-anvil-comp7
- MINIFORGE_NAME="Miniforge-pypy3"

- os: linux
env:
- ARCH=ppc64le
- DOCKER_ARCH=ppc64le
- DOCKERIMAGE=condaforge/linux-anvil-ppc64le
- MINIFORGE_NAME="Miniforge-pypy3"

script:
- if [[ "$TRAVIS_TAG" != "" ]]; then export MINIFORGE_VERSION=$TRAVIS_TAG; fi
- bash build_miniforge.sh
# Copy for latest release
- cp build/Miniforge3-*-Linux-$ARCH.sh build/Miniforge3-Linux-$ARCH.sh
- cp build/$MINIFORGE_NAME-*-Linux-$ARCH.sh build/$MINIFORGE_NAME-Linux-$ARCH.sh
- ls -alh build

deploy:
provider: releases
Expand Down
13 changes: 10 additions & 3 deletions Miniforge3/construct.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Miniforge3
version: 4.8.2-1
{% set version = os.environ.get("MINIFORGE_VERSION", "4.8.3-0") %}
{% set name = os.environ.get("MINIFORGE_NAME", "Miniforge3") %}

name: {{ name }}
version: {{ version }}

channels:
- https://conda.anaconda.org/conda-forge
Expand All @@ -8,7 +11,11 @@ write_condarc: True
license_file: ../LICENSE

specs:
{% if name == "Miniforge3" %}
- python 3.7.*
- conda 4.8.2
{% elif name == "Miniforge-pypy3" %}
- python 3.6.* *_pypy
{% endif %}
- conda {{ version.split("-")[0] }}
- pip
- bzip2
2 changes: 1 addition & 1 deletion build_miniforge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ echo "============= Enable QEMU ============="
docker run --rm --privileged multiarch/qemu-user-static:register --reset --credential yes

echo "============= Build the installer ============="
docker run --rm -ti -v $(pwd):/construct $DOCKERIMAGE /construct/scripts/build.sh
docker run --rm -ti -v $(pwd):/construct -e MINIFORGE_VERSION -e MINIFORGE_NAME $DOCKERIMAGE /construct/scripts/build.sh

echo "============= Download QEMU static binaries ============="
bash scripts/get_qemu.sh
Expand Down
1 change: 1 addition & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ cd $CONSTRUCT_ROOT
# See https://github.com/conda-forge/miniforge/pull/2#issuecomment-554394343
echo "***** Install constructor *****"
conda install -y "constructor>=3.0.1"
pip install git+git://github.com/isuruf/constructor@801191768821#egg=constructor --force --no-deps
conda list

echo "***** Make temp directory *****"
Expand Down

0 comments on commit 7d5fba0

Please sign in to comment.