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:
		| @@ -69,8 +69,7 @@ def configure_certificates(self): | |||||||
|         hgrc_filename = etc_dir.hgrc |         hgrc_filename = etc_dir.hgrc | ||||||
| 
 | 
 | ||||||
|         # Use certifi to find the location of the CA certificate |         # 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(certifi.where())", output=str) | ||||||
|         certificate = python("-c", "import certifi; " + print_str, output=str) |  | ||||||
| 
 | 
 | ||||||
|         if not certificate: |         if not certificate: | ||||||
|             tty.warn( |             tty.warn( | ||||||
|   | |||||||
| @@ -105,8 +105,7 @@ def install_test(self): | |||||||
|             python = self.spec["python"].command |             python = self.spec["python"].command | ||||||
|             py_inc = python( |             py_inc = python( | ||||||
|                 "-c", |                 "-c", | ||||||
|                 "import pybind11 as py; " |                 "import pybind11 as py; print(py.get_include())", | ||||||
|                 + self.spec["python"].package.print_string("py.get_include()"), |  | ||||||
|                 output=str, |                 output=str, | ||||||
|             ).strip() |             ).strip() | ||||||
|             for inc in [py_inc, self.prefix.include]: |             for inc in [py_inc, self.prefix.include]: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Nicholas Sly
					Nicholas Sly