blob: cdef12633236b49faa01b87866737b125883f126 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class PyPyqt6(SIPPackage):
"""PyQt6 is a comprehensive set of Python bindings for Qt v6."""
homepage = "https://www.riverbankcomputing.com/software/pyqt/"
url = "https://files.pythonhosted.org/packages/source/P/PyQt6/PyQt6-6.5.1.tar.gz"
list_url = "https://pypi.org/simple/PyQt6/"
version("6.5.1", sha256="e166a0568c27bcc8db00271a5043936226690b6a4a74ce0a5caeb408040a97c3")
# pyproject.toml
depends_on("py-sip@6.5:6", type="build")
depends_on("py-pyqt-builder@1.15:1", type="build")
# PKG-INFO
depends_on("py-pyqt6-sip@13.4:13", type=("build", "run"))
# README
depends_on("qt-base@6")
def setup_build_environment(self, env):
# Detected system locale encoding (US-ASCII, locale "C") is not UTF-8.
# Qt shall use a UTF-8 locale ("UTF-8") instead. If this causes problems,
# reconfigure your locale. See the locale(1) manual for more information.
env.set("LC_ALL", "en_US.UTF-8")
def configure_args(self):
# https://www.riverbankcomputing.com/static/Docs/PyQt6/installation.html
return ["--confirm-license", "--no-make", "--qmake", self.spec["qt-base"].prefix.bin.qmake]
|