buildinspace / peru

a generic package manager, for including other people's code in your projects
MIT License
1.12k stars 69 forks source link

Support installing/running with pipx - fixes #238 #241

Closed maxwell-k closed 9 months ago

maxwell-k commented 1 year ago

The curl plugin for peru uses the following as its shebang line:

#! /usr/bin/env python3

If the user is using pipx, then the system Python interpreter — /usr/bin/env python3 — likely does not have the peru package installed.

Before this change the curl plugin always uses a get_version function from the peru package and therefore will error if the Python interpreter does not have the peru package installed.

After this change the curl plugin can succeed with only standard library modules available.

Fixes #238

jbrubake commented 1 year ago

What would it take to get this merged? I submitted the initial issue and l have found peru to be a great tool that I use quite a bit.

jbrubake commented 4 months ago

@oconnor663 @olson-sean-k if this were re-opened, could you merge it? I ran into this issue again on a new system and it took me half a day to remember how to fix it