From 400eda97335704281de6981186799fe237cba907 Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Mon, 2 Aug 2021 22:19:58 +0200 Subject: [PATCH] It seems PySide2 wasn't detected, trying to see two potential sources. --- build-windows.bat | 2 +- build-wine.sh | 2 +- setup.py | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build-windows.bat b/build-windows.bat index aff04f7..70d3de0 100644 --- a/build-windows.bat +++ b/build-windows.bat @@ -1,2 +1,2 @@ python -m pip install -U pyinstaller -pyinstaller --add-data "logplotter.svg;." --add-data "LogarithmPlotter/qml;qml" --noconsole LogarithmPlotter/__init__.py --icon=win/logarithmplotter.ico -n logarithmplotter +pyinstaller --add-data "logplotter.svg;." --add-data "LogarithmPlotter/qml;qml" --noconsole LogarithmPlotter/logarithmplotter.py --icon=win/logarithmplotter.ico -n logarithmplotter diff --git a/build-wine.sh b/build-wine.sh index b0eb0ac..e802ac5 100644 --- a/build-wine.sh +++ b/build-wine.sh @@ -3,4 +3,4 @@ rm $(find . -name "*.qmlc") rm $(find . -name "*.pyc") wine python -m pip install -U pyinstaller -wine pyinstaller --add-data "logplotter.svg;." --add-data "LogarithmPlotter/qml;qml" --noconsole LogarithmPlotter/__init__.py --icon=win/logarithmplotter.ico -n logarithmplotter +wine pyinstaller --add-data "logplotter.svg;." --add-data "LogarithmPlotter/qml;qml" --noconsole LogarithmPlotter/logarithmplotter.py --icon=win/logarithmplotter.ico -n logarithmplotter diff --git a/setup.py b/setup.py index 8b47858..7f2216d 100644 --- a/setup.py +++ b/setup.py @@ -96,6 +96,8 @@ if sys.platform == 'linux': os.remove(os.environ["PREFIX"] + '/icons/hicolor/scalable/mimetypes/application-x-logarithm-plot.svg') os.remove(os.environ["PREFIX"] + '/icons/hicolor/scalable/apps/logplotter.svg') +print("Dependencies:", [] if "FLATPAK_INSTALL" in os.environ else ["PySide2"]) + setuptools.setup( install_requires=([] if "FLATPAK_INSTALL" in os.environ else ["PySide2"]), python_requires='>=3.8',