Can I get package version when running pip install to install packages from pypiserver?
KurtJiang28 opened this issue · comments
Hi, I'm using pypiserver in a limited environment and would like to download packages from pypi.org if not found. I'm curious if I can get package version inside /simple/:prefix route when receive a pip install request. For example, if someone runs pip install Flask==1.1.2 --extra-index-url....., how can I know he/she wants to download flask of version 1.1.2?
Hey @KurtJiang28, thanks for the question! That's a good catch, I think that this should be supported, but I will try to give it a test somewhere later this week to see if it works as expected. Very sorry for my late reaction in any case. Have you managed to give it a try in the meantime by any chance? 🙂 If you've found a solution, it would be very welcome here :) And if this is no longer applicable, feel free to close the issue ✌️