devbox icon indicating copy to clipboard operation
devbox copied to clipboard

[Package Issue Report]: python312Packages.pip missing

Open mdomke opened this issue 2 years ago • 4 comments

The documentation of devbox indicates that Python with pip should be setup by adapting the snippet with the actual version number of Python

{
    "packages": [
        "python312",
        "python312Packages.pip"
    ],
    "shell": {
        "init_hook": ". $VENV_DIR/bin/activate"
    }
}

but the python312Packages.pip package does not exist. In fact, no python312Packages.xxx exists at all. Is there a reason why these packages are missing for Python 3.12?

mdomke avatar Nov 20 '23 23:11 mdomke

@mdomke thanks for reporting this. It's not clear to me why those packages do not exist for python312 -- it looks like they were never added or surfaced in the core nixpkgs repo.

I think a better way to work around this is to use the pip binary that is bundled with [email protected]. Our current plugin only creates a virtual environment if you explicitly add a pip package, but we could make it work with the python package as well. I can link a PR once I finish testing this

Lagoja avatar Nov 21 '23 21:11 Lagoja

@Lagoja thank you for the quick response and also for providing a fix. I think your pull-request has been approved so that you could merge it, what do you think?

mdomke avatar Nov 28 '23 10:11 mdomke

Merged now! Will work on getting a release out with this in the next week.

Lagoja avatar Nov 29 '23 18:11 Lagoja

@Lagoja close task?

savil avatar Jan 26 '24 01:01 savil