Split up setup.py and move packaging tools to new script

This commit is contained in:
Veronica Berglyd Olsen
2023-07-26 19:28:34 +02:00
parent a6c0152a68
commit 02312054fb
15 changed files with 2088 additions and 2146 deletions
+7 -7
View File
@@ -7,12 +7,12 @@ python --version 2>NUL
if errorlevel 1 goto errorNoPython
echo Python found. OK.
if exist setup.py (
echo setup.py found. OK.
if exist pkgutils.py (
echo pkgutils.py found. OK.
) else (
cd ..
if exist setup.py (
echo setup.py found. OK.
if exist pkgutils.py (
echo pkgutils.py found. OK.
) else (
goto errorNoSetup
)
@@ -27,7 +27,7 @@ goto afterUninst
:doUninst
:: Remove the desktop and start menu icons
python setup.py win-uninstall
python pkgutils.py win-uninstall
:: Remove the PyQt5 and pyenchant dependencies
pip uninstall --yes -r requirements.txt
@@ -51,9 +51,9 @@ goto:eof
:errorNoSetup
echo.
echo ERROR^: Could not find the setup.py script.
echo ERROR^: Could not find the pkgutils.py script.
echo.
echo Make sure you run setup.py from the novelWriter root folder.
echo Make sure you run pkgutils.py from the novelWriter root folder.
echo.
pause