Skip to content

Commit

Permalink
Fix outputs' test and entrypoints, set PIP env vars (#15)
Browse files Browse the repository at this point in the history
* Set pip/python env variables for pip install

* fix test and entrypoints for outputs

* bump build number

* MNT: Re-rendered with conda-build 3.19.2, conda-smithy 3.7.4, and conda-forge-pinning 2020.07.23.07.37.39
  • Loading branch information
mbargull authored Jul 31, 2020
1 parent 8859697 commit 0254737
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 16 deletions.
18 changes: 9 additions & 9 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion recipe/build_base.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/bin/bash
set -euo pipefail

${PYTHON} -m pip install . --no-deps -vv
# Set a few environment variables that are not set due to
# https://github.com/conda/conda-build/issues/3993
PIP_NO_BUILD_ISOLATION=False \
PIP_NO_DEPENDENCIES=True \
PIP_IGNORE_INSTALLED=True \
PIP_NO_INDEX=True \
PYTHONDONTWRITEBYTECODE=True \
${PYTHON} -m pip install . --no-deps -vv
14 changes: 8 additions & 6 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
{% set version = "19.10b0" %}

package:
name: {{ name|lower }}
name: {{ name|lower }}-recipe
version: {{ version }}

source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: c2edb73a08e9e0e6f65a0e6af18b059b8b1cdd5bef997d7a0b181df93dc81539

build:
number: 3
noarch: python
entry_points:
- black = black:patched_main
- blackd = blackd:patched_main
number: 4

outputs:
- name: {{ name }}
script: build_base.sh
build:
noarch: python
entry_points:
- black = black:patched_main
requirements:
host:
- python >=3.6
Expand All @@ -40,6 +40,8 @@ outputs:
- name: {{ name }}d
build:
noarch: python
entry_points:
- blackd = blackd:patched_main
requirements:
run:
- {{ pin_subpackage('black', exact=True) }}
Expand Down

0 comments on commit 0254737

Please sign in to comment.