Skip to content

Make pixi use build-backend dependencies from conda packages instead of uv build isolated variants #1088

Closed as not planned

Description

@pavelzw

Problem description

#1084 (comment)

In corporate environments, you might not have access to pypi but only a conda server.
It would be cool if pixi was able to lock the used build backends in the lockfile and use it from conda and not pypi when specifying source dependencies in pypi-dependencies.

In general, I think it would be beneficial to lock the used build-backends for reproducibility.

Activity

  1. tdejager commented on Mar 29, 2024

    @tdejager
    Contributor

    Locking the build-backends is something that is being discussed in the pypi world as well. So that should be useful for sure, currently UV does another resolve to determine the build environment something we did in RIP as well, I don't know if we can influence this.

  2. pavelzw commented on Mar 29, 2024

    @pavelzw
    CollaboratorAuthor

    If we can't influence this, could we maybe get a no-build-isolation flag?

    [pypi-dependencies]
    my-package = {path = ".", editable = true, no-build-isolation = true}
    
    [dependencies]
    setuptools = "*"
    setuptools-scm = "*"

    I would love to get the editable installs feature in places where pypi is not available.

  3. tdejager commented on Mar 29, 2024

    @tdejager
    Contributor

    NoBuildIsolation is possible for sure, we should give that a go!

  4. pavelzw commented on Apr 3, 2024

    @pavelzw
    CollaboratorAuthor

    In our workflows we not only use --no-build-isolation but also --no-deps since we want to basically do everything with conda and use pip only for actually moving the project into the python env. Maybe(?) it could make sense to also have the option available in pixi and if pixi recognizes that we use no-build-isolation and no-deps, it doesn't try to solve pypi-dependencies at all? But i'm personally not 100% sold on the idea yet...

  5. tdejager commented on Apr 3, 2024

    @tdejager
    Contributor

    Hmm I understand, let me think about it more, I'll come back to this.

  6. tdejager commented on Apr 5, 2024

    @tdejager
    Contributor

    I think, what you actually want might be a build and install in the current environment functionality, which would replace your use-case for editables as dependencies?

  7. pavelzw commented on Apr 5, 2024

    @pavelzw
    CollaboratorAuthor

    This would be fine for me as well if it's well thought out. The main thing I want is to replace pixi run postinstall 😅

  8. added
    needs-decision
    on Apr 5, 2024
  9. tdejager commented on Sep 23, 2024

    @tdejager
    Contributor

    Can we close this for now with the abiliy to specify no-build-isolation?

  10. pavelzw commented on Dec 18, 2025

    @pavelzw
    CollaboratorAuthor

    With pixi-Build I don't really care about this issue anymore. Should I close it?

  11. tdejager commented on Dec 18, 2025

    @tdejager
    Contributor

    Please go ahead!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementneeds-decisionpypi

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions