/usr/bin/python will be removed in macOS 12.3!
Bjarne D Mathiesen
macintosh at mathiesen.info
Thu Feb 24 18:35:53 UTC 2022
"#!/usr/bin/env python" might not be a problem
iff
the macports python is also installed as a prerequisite
the ${PATH} variable includes '/opt/local/bin'
Ryan Schmidt wrote:
> On Feb 19, 2022, at 11:06, Gerben Wierda wrote:
>
>> But how does one (a) find out the dependency exists and (b) make sure the software finds python from MacPorts?
>
> General-purpose answers to either question are not possible. Each affected port will need to be investigated and fixed in its own unique way.
>
> /usr/bin/python might be used
>
> * directly by the Portfile specifying /usr/bin/python somewhere
> * in a patchfile that references /usr/bin/python explicitly
> * as a shebang line (e.g. "#!/usr/bin/python" or "#!/usr/bin/env python") in files used by the port at build time and/or installed by the port
> * by a build system that uses the first binary it finds named "python"
> * in unknowable other ways
>
> To tell the build system to use a particular python, one might need to
>
> * set the PYTHON environment variable at configure time -- this is accomplished by setting the configure.python option
> * specify some other configure environment variable or argument
> * patch files
> * do something else
>
--
Bjarne D Mathiesen
Korsør ; Danmark ; Europa
-----------------------------------------------------------------------
denne besked er skrevet i et totalt M$-frit miljø
MacPro 2010 ; OpenCore + macOS 10.15.7 Catalina
2 x 3,46 GHz 6-Core Intel Xeon ; 256 GB 1333 MHz DDR3 ECC RDIMM
ATI Radeon RX 590 8 GB
More information about the macports-dev
mailing list