windows: package pyqtgraph

This commit is contained in:
Sebastien Bourdeauducq 2022-04-05 16:26:08 +08:00
parent dfb2908d09
commit 64b56077cd
5 changed files with 20 additions and 2 deletions

View File

@ -363,6 +363,7 @@
hydraJobs = {
inherit (packages.x86_64-linux) artiq artiq-board-kc705-nist_clock openocd-bscanspi;
pyqtgraph-msys2-pkg = packages.x86_64-w64-mingw32.pyqtgraph-pkg;
sipyco-msys2-pkg = packages.x86_64-w64-mingw32.sipyco-pkg;
artiq-comtools-msys2-pkg = packages.x86_64-w64-mingw32.artiq-comtools-pkg;
artiq-msys2-pkg = packages.x86_64-w64-mingw32.artiq-pkg;

View File

@ -8,7 +8,7 @@ depends=(
"mingw-w64-x86_64-python-h5py"
"mingw-w64-x86_64-python-pyqt5"
# TODO "mingw-w64-x86_64-python-qasync"
# TODO "mingw-w64-x86_64-python-pyqtgraph"
"mingw-w64-x86_64-python-pyqtgraph"
"mingw-w64-x86_64-python-numpy"
"mingw-w64-x86_64-python-scipy"
"mingw-w64-x86_64-python-dateutil"

View File

@ -12,7 +12,7 @@ build() {
cd source
wine-msys2-build python setup.py install --prefix=../mingw64
cd ..
rm mingw64/lib/python3.9/site-packages/easy-install.pth
rm -f mingw64/lib/python3.9/site-packages/easy-install.pth
}
package() {

View File

@ -0,0 +1,11 @@
pkgbase="mingw-w64-python-pyqtgraph"
pkgname="mingw-w64-x86_64-python-pyqtgraph"
pkgrel=1
pkgdesc="Fast data visualization and GUI tools for scientific / engineering applications"
license=("MIT")
depends=(
"mingw-w64-x86_64-python"
"mingw-w64-x86_64-python-pyqt5"
)
source PKGBUILD.common

View File

@ -28,6 +28,11 @@ let
'';
};
in rec {
pyqtgraph-pkg = makeMsys2 {
name = "pyqtgraph";
src = pkgs.python3Packages.pyqtgraph.src;
inherit (pkgs.python3Packages.pyqtgraph) version;
};
sipyco-pkg = makeMsys2 {
name = "sipyco";
src = sipyco;
@ -51,6 +56,7 @@ in rec {
''
mkdir $out
cd $out
ln -s ${pyqtgraph-pkg}/*.pkg.tar.zst .
ln -s ${sipyco-pkg}/*.pkg.tar.zst .
ln -s ${artiq-comtools-pkg}/*.pkg.tar.zst .
ln -s ${nac3.packages.x86_64-w64-mingw32.nac3artiq-pkg}/*.pkg.tar.zst .