Skip to content

Commit

Permalink
Clarify which environment gets activated first (#4942)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp authored Sep 18, 2023
1 parent 82fc11a commit 47909da
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/source/resources/define-metadata.rst
Original file line number Diff line number Diff line change
Expand Up @@ -992,9 +992,10 @@ words, a Python package would list ``python`` here and an R package would list

The PREFIX environment variable points to the host prefix. With respect to
activation during builds, both the host and build environments are activated.
The build prefix is activated before the host prefix so that the host prefix
has priority over the build prefix. Executables that don't exist in the host
prefix should be found in the build prefix.
The build prefix is activated *after* the host prefix so that the build prefix,
which always contains native executables for the running platform, has priority
over the host prefix, which is not guaranteed to provide native executables (e.g.
when cross-compiling).

As of conda-build 3.1.4, the build and host prefixes are always separate when
both are defined, or when ``{{ compiler() }}`` Jinja2 functions are used. The
Expand Down
19 changes: 19 additions & 0 deletions news/4942-docs-prefix-activation
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### Enhancements

* <news item>

### Bug fixes

* <news item>

### Deprecations

* <news item>

### Docs

* Clarify that the `build` prefix is activated _after_ the `host` prefix. (#4942)

### Other

* <news item>

0 comments on commit 47909da

Please sign in to comment.