prefix-dev / rattler-build

rattler-build is a universal package builder for Windows, macOS and Linux
https://prefix-dev.github.io/rattler-build
BSD 3-Clause "New" or "Revised" License
185 stars 38 forks source link

Set `PIP_PREFIX` on noarch? #941

Open wolfv opened 2 months ago

wolfv commented 2 months ago

We currently don't handle build & host the exact same way as conda-build does.

If conda-build encounters a situation where no host is present, it handles build as host. This probably happens most often for noarch packages where nothing is linked against and cross-compilation is no concern.

I am wondering if we should follow that behavior, or if we should just make sure that pip install installs into the $PREFIX (we could export the PIP_PREFIX variable for that ... possibly!).

In that case, pip would always install into the correct prefix.

jaimergp commented 1 month ago

If conda-build encounters a situation where no host is present, it handles build as host.

I think this was the original behavior in conda-build 2.x where host didn't exist yet.

There are a few recipes (2k+!) that do not use host in conda-forge.

baszalmstra commented 1 month ago

I think treating build as host is very unintuitive. I wouldnt copy that behavior. The conversion tool should be able to correct this.