Skip to content

Pixi 0.8 doesn't work with editable installations #507

Closed

Description

@Hofer-Julian

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

When using pixi, I typically add an editable installation of my current Python package.
This looks something like this:

[project]
name = "pixi-0.8"
version = "0.1.0"

channels = ["conda-forge"]
platforms = ["win-64", "linux-64", "osx-arm64", "osx-64"]

[tasks]
install = "pip install --editable python"
import = "python -c 'import test_package'"

[dependencies]
python = "3.12.0.*"
pip = "23.3.1.*"

Starting from pixi 0.8, running pixi run install and then pixi run import gives this:

✨ Pixi task: python -c 'import test_package'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'test_package'

You can find the complete example here: https://github.com/Hofer-Julian/pixi-0.8

According to our CI, it should happen on Windows, macOS and Linux.

Issue description

While pixi didn't support installation via pip, it was possible to install packages with pixi tasks.
Editable installations are broken since 0.8.
It seems like "normal", non-editable installations still work as expected.

Expected behavior

Ideally editable install would be directly supported by pixi. Alternatively, it would be great if one can at least install packages via pixi tasks.

Activity

  1. added
    bug
    on Nov 28, 2023
  2. changed the title [-]Pixi 0.8 doesn't work with editable [/-] [+]Pixi 0.8 doesn't work with editable installations[/+] on Nov 28, 2023
  3. ruben-arts commented on Nov 28, 2023

    @ruben-arts
    Contributor

    Thanks for the example and letting us know, we're on it!

  4. ruben-arts commented on Nov 28, 2023

    @ruben-arts
    Contributor

    We think the issue is that we "uninstall" every package that our lock file doesn't specify as needed. This might be an easy fix. @baszalmstra is on it!

  5. added a commit that references this issue on Nov 28, 2023
    36c60ba
  6. Hofer-Julian commented on Nov 28, 2023

    @Hofer-Julian
    MemberAuthor

    Wow, that was fast. Thanks for taking care of this @baszalmstra!

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions