forked from M-Labs/thermostat
PyThermostat GUI: Set up packaging
Co-authored-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
parent
f14e67de82
commit
bfbe8b79a7
20
flake.nix
20
flake.nix
@ -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
4
pythermostat/MANIFEST.in
Normal 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
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user