summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJuan Miguel Carceller <22276694+jmcarcell@users.noreply.github.com>2023-06-23 04:48:24 +0200
committerGitHub <noreply@github.com>2023-06-22 22:48:24 -0400
commit3d342ac69a07112199f632f3b270f7d0798fa704 (patch)
treec5371347fa60a971cc66fb5b988b41f50594cdbf /var
parent88fc8ae591e4897521b1e886cb03303e7ad43b67 (diff)
downloadspack-3d342ac69a07112199f632f3b270f7d0798fa704.tar.gz
spack-3d342ac69a07112199f632f3b270f7d0798fa704.tar.bz2
spack-3d342ac69a07112199f632f3b270f7d0798fa704.tar.xz
spack-3d342ac69a07112199f632f3b270f7d0798fa704.zip
py-qmtest: add patch for the removed bdist_wininst class (#38253)
Co-authored-by: jmcarcell <jmcarcell@users.noreply.github.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-qmtest/package.py3
-rw-r--r--var/spack/repos/builtin/packages/py-qmtest/wininst.patch20
2 files changed, 23 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-qmtest/package.py b/var/spack/repos/builtin/packages/py-qmtest/package.py
index d3c770a1f2..1b9e6c98ce 100644
--- a/var/spack/repos/builtin/packages/py-qmtest/package.py
+++ b/var/spack/repos/builtin/packages/py-qmtest/package.py
@@ -16,5 +16,8 @@ class PyQmtest(PythonPackage):
version("2.4.1", sha256="098f705aea9c8f7f5b6b5fe131974cee33b50cad3e13977e39708f306ce9ac91")
+ # Patch to fix python 3.10 and above compatibility
+ patch("wininst.patch", when="@2.4.1^python@3.10:")
+
depends_on("python@2.2:", type=("build", "run"))
depends_on("py-setuptools", type="build")
diff --git a/var/spack/repos/builtin/packages/py-qmtest/wininst.patch b/var/spack/repos/builtin/packages/py-qmtest/wininst.patch
new file mode 100644
index 0000000000..cdca930322
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-qmtest/wininst.patch
@@ -0,0 +1,20 @@
+diff --git a/setup.py b/setup.py
+index 198cc92..2e07495 100644
+--- a/setup.py
++++ b/setup.py
+@@ -23,7 +23,6 @@ from qmdist.command.build_py import build_py
+ from qmdist.command.build_scripts import build_scripts
+ from qmdist.command.build_doc import *
+ from qmdist.command.install_lib import install_lib
+-from qmdist.command.bdist_wininst import bdist_wininst
+ from qmdist.command.check import check
+ import sys, os, os.path, glob, shutil
+
+@@ -66,7 +65,6 @@ setup(name="qmtest",
+ 'build_ref_manual': build_ref_manual,
+ 'build_man_page': build_man_page,
+ 'install_lib': install_lib,
+- 'bdist_wininst' : bdist_wininst,
+ 'check': check},
+
+ packages=('qm',