PyThermostat GUI: Set up packaging

Co-authored-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
atse 2024-10-28 17:52:00 +08:00
parent f14e67de82
commit bfbe8b79a7
3 changed files with 23 additions and 2 deletions

View File

@ -63,11 +63,22 @@
version = "0.0.0"; version = "0.0.0";
src = "${self}/pythermostat"; src = "${self}/pythermostat";
nativeBuildInputs = [ pkgs.qt6.wrapQtAppsHook ];
propagatedBuildInputs = propagatedBuildInputs =
with pkgs.python3Packages; [ [ pkgs.qt6.qtbase ]
++ (with pkgs.python3Packages; [
numpy numpy
matplotlib matplotlib
]; pyqtgraph
pyqt6
qasync
pglive
]);
dontWrapQtApps = true;
postFixup = ''
wrapQtApp "$out/bin/tec_qt"
'';
}; };
pglive = pkgs.python3Packages.buildPythonPackage rec { pglive = pkgs.python3Packages.buildPythonPackage rec {
@ -91,6 +102,11 @@
default = thermostat; default = thermostat;
}; };
apps.x86_64-linux.thermostat_gui = {
type = "app";
program = "${self.packages.x86_64-linux.pythermostat}/bin/tec_qt";
};
hydraJobs = { hydraJobs = {
inherit thermostat; inherit thermostat;
}; };

4
pythermostat/MANIFEST.in Normal file
View File

@ -0,0 +1,4 @@
graft examples
include pythermostat/gui/resources/artiq.ico
include pythermostat/gui/view/param_tree.json
include pythermostat/gui/view/tec_qt.ui

View File

@ -12,6 +12,7 @@ setup(
entry_points={ entry_points={
"gui_scripts": [ "gui_scripts": [
"thermostat_plot = pythermostat.plot:main", "thermostat_plot = pythermostat.plot:main",
"thermostat_qt = pythermostat.thermostat_qt:main",
], ],
"console_scripts": [ "console_scripts": [
"thermostat_autotune = pythermostat.autotune:main", "thermostat_autotune = pythermostat.autotune:main",