mercurial/py-pybind11: print_string no longer exists (#34340)
* Fix mercurial print_str failure. * Perform same fix on py-pybind11 for print_string missing method. Co-authored-by: Nicholas Cameron Sly <sly1@llnl.gov>
This commit is contained in:
parent
eadccfe332
commit
4a429ec315
2 changed files with 2 additions and 4 deletions
|
@ -69,8 +69,7 @@ def configure_certificates(self):
|
|||
hgrc_filename = etc_dir.hgrc
|
||||
|
||||
# Use certifi to find the location of the CA certificate
|
||||
print_str = self.spec["python"].package.print_string("certifi.where()")
|
||||
certificate = python("-c", "import certifi; " + print_str, output=str)
|
||||
certificate = python("-c", "import certifi; print(certifi.where())", output=str)
|
||||
|
||||
if not certificate:
|
||||
tty.warn(
|
||||
|
|
|
@ -105,8 +105,7 @@ def install_test(self):
|
|||
python = self.spec["python"].command
|
||||
py_inc = python(
|
||||
"-c",
|
||||
"import pybind11 as py; "
|
||||
+ self.spec["python"].package.print_string("py.get_include()"),
|
||||
"import pybind11 as py; print(py.get_include())",
|
||||
output=str,
|
||||
).strip()
|
||||
for inc in [py_inc, self.prefix.include]:
|
||||
|
|
Loading…
Reference in a new issue