mitsuhiko / pipsi

pip script installer
Other
2k stars 133 forks source link

Add --suffix-version option #143

Closed caioariede closed 9 months ago

caioariede commented 6 years ago

Simple approach that enables installation for multiple Python versions.

caioariede commented 6 years ago

Tests failed because of environment py33 that does not exist.

caioariede commented 6 years ago

Example:

$ git clone https://github.com/caioariede/pipsi.git /tmp/pipsi
$ cd /tmp/pipsi
$ git checkout feature/add-suffix-py-version
$ python3 get-pipsi.py --suffix-version --src ./
Installing pipsi-3.6.5
...
$ pipsi-3.6.5 --version
pipsi-3.6.5, version 0.10.dev0, python ...
$ pipsi-3.6.5 install flake8
...
$ which flake8-3.6.5
/Users/caio/.local/bin/flake8-3.6.5
RonnyPfannschmidt commented 6 years ago

imho pipsi should only be required to be installed once, the python versions should only be needed for tehe programs

reorx commented 6 years ago

In my opinion what get-pipsi.py installed should also be able to managed by pipsi itself, and since pipsi doesn't support installing packages for multiple versions, e.g. install and keep flake8 in 3.6.0 and 3.5.0 at the same time, we should not break the package dir naming.

When pipsi support multiple package versions, then you can pipsi install pipsi==0.9 and get a pipsi-0.9 on your path, I think this should be a better approach, and is more useful than only let get-pipsi.py support multiple versions.