mhammond / pywin32

Python for Windows (pywin32) Extensions
4.9k stars 783 forks source link

Running `setup.py` as a script and its use as a CLI tool are deprecated #2208

Open Avasam opened 3 months ago

Avasam commented 3 months ago

https://packaging.python.org/en/latest/discussions/setup-py-deprecated/#is-setup-py-deprecated

python setup.py and the use of setup.py as a command line tool are deprecated

https://setuptools.pypa.io/en/latest/deprecated/commands.html#running-setuptools-commands

running python setup.py directly as a script is considered deprecated.

pywin32 itself should move away from it, I have yet to investigate everything needed for pywin32 to move away from it.

Relates to #2119

To stop using python setup.py, the --skip-verstamp flag needs to be changed. Either trying to pass it through:

Being able to build / install from pip install will open the door to: