adang1345 / PythonWin7

Python 3.9+ installers that support Windows 7 SP1 and Windows Server 2008 R2 SP1
MIT License
595 stars 71 forks source link

How to install via `nuget`? #16

Closed StSav012 closed 1 year ago

StSav012 commented 1 year ago

Dear devs,

That's an awesome work you do here!

There are nuget packages available in the repo. However, I can't do just

nuget install "https://github.com/adang1345/PythonWin7/blob/master/3.11.3/python.3.11.3.nupkg"

Neither can I add the repo to nuget sources:

nuget sources add -name "PythonWin7" -source "https://github.com/adang1345/PythonWin7/blob/master/"

Well, I can, but without a JSON description of the repo, it doesn't make much sense.

Please add a word or two to the README about how to use the packages and how to make Python auto-updatable.

adang1345 commented 1 year ago

This repository is just providing the .nupkg file. I'm not sure how to install it with the nuget command either. If anyone else knows the answer, then feel free to share.

adang1345 commented 1 year ago

I have found the answer. Go to the directory containing the .nupkg file in Command Prompt. Replace target\installation\directory with the location where you want the package installed.

For 64-bit Python, run nuget install python -Source %cd% -OuputDirectory target\installation\directory

For 32-bit Python, run nuget install pythonx86 -Source %cd% -OuputDirectory target\installation\directory

adang1345 commented 1 year ago

I added these instructions to the README.

StSav012 commented 1 year ago

Thank you so much!