From 0015f700b77247873d06ddd12c496ebb782d4713 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Wed, 15 Sep 2021 13:57:33 -0500 Subject: py-pybind11: use PythonPackage install method (#25650) --- var/spack/repos/builtin/packages/py-pybind11/package.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/py-pybind11/package.py b/var/spack/repos/builtin/packages/py-pybind11/package.py index e007de58ce..35cdb8ead0 100644 --- a/var/spack/repos/builtin/packages/py-pybind11/package.py +++ b/var/spack/repos/builtin/packages/py-pybind11/package.py @@ -8,7 +8,7 @@ import os from spack import * -class PyPybind11(CMakePackage): +class PyPybind11(CMakePackage, PythonPackage): """pybind11 -- Seamless operability between C++11 and Python. pybind11 is a lightweight header-only library that exposes C++ types in @@ -43,13 +43,13 @@ class PyPybind11(CMakePackage): depends_on('py-setuptools', type='build') depends_on('py-pytest', type='test') - extends('python') - # compiler support conflicts('%gcc@:4.7') conflicts('%clang@:3.2') conflicts('%intel@:16') + build_directory = '.' + def cmake_args(self): args = [] args.append('-DPYTHON_EXECUTABLE:FILEPATH=%s' @@ -72,9 +72,8 @@ class PyPybind11(CMakePackage): string=True) def install(self, spec, prefix): - super(PyPybind11, self).install(spec, prefix) - setup_py('install', '--single-version-externally-managed', '--root=/', - '--prefix={0}'.format(prefix)) + CMakePackage.install(self, spec, prefix) + PythonPackage.install(self, spec, prefix) @run_after('install') @on_package_attributes(run_tests=True) -- cgit v1.2.3-70-g09d2