/usr/bin/python will be removed in macOS 12.3!
Bjarne D Mathiesen
macintosh at mathiesen.info
Thu Feb 24 18:14:40 UTC 2022
=> $cd
/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports
=> fgrep -R '/usr/bin/python' * \
| awk -F ':' '{print $1}' \
| sort -u \
| wc -l
67
bjarne at MacPro 19:06:33
/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports
$=> fgrep -R '/usr/bin/python' * \
| awk -F ':' '{print $1}' \
| sort -u
aqua/namebench/Portfile
devel/bakefile/Portfile
devel/gtk-mac-bundler/files/patch-0.7.4-to-24Feb2016.diff
devel/icompile/Portfile
devel/icu/Portfile
devel/icu58/Portfile
devel/libtapi/Portfile
devel/redo/Portfile
devel/reinteract/files/patch-python.diff
editors/MacVim/files/patch-python.diff
editors/vim/files/patch-python.diff
gis/mapnik/Portfile
graphics/Aseprite/Portfile
graphics/birdfont/Portfile
graphics/gimp3-devel/Portfile
graphics/netpbm/Portfile
graphics/netpbm/files/patch-python.diff
graphics/opencv3-devel/Portfile
graphics/opencv3/Portfile
graphics/opencv4-devel/Portfile
graphics/opencv4/Portfile
lang/ghc-bootstrap/files/clang-wrapper
lang/llvm-10/Portfile
lang/llvm-11/Portfile
lang/llvm-3.3/Portfile
lang/llvm-3.7/Portfile
lang/llvm-5.0/Portfile
lang/llvm-6.0/Portfile
lang/llvm-7.0/Portfile
lang/llvm-8.0/Portfile
lang/llvm-9.0/Portfile
lang/mrustc/Portfile
mail/signing-party/Portfile
math/plda/Portfile
multimedia/mythtv.27/Portfile
multimedia/mythtv.28/Portfile
net/http-replicator/Portfile
net/ipcheck/Portfile
net/pastebinit/Portfile
python/py-gdata/Portfile
python/py-geoip/Portfile
python/py-gtfs/Portfile
python/py-urlgrabber/Portfile
python/trim_osc/Portfile
science/gr-air-modes/files/patch-cmake_Modules_GrPython.cmake.diff
science/pdb2pqr/Portfile
science/root6/Portfile
sysutils/python2_select/files/python23-apple
sysutils/python2_select/files/python25-apple
sysutils/python2_select/files/python25-apple.mtln
sysutils/python2_select/files/python26-apple
sysutils/python2_select/files/python26-apple.mtln
sysutils/python2_select/files/python27-apple
sysutils/python2_select/files/python27-apple.mtln
sysutils/python_select/files/python23-apple
sysutils/python_select/files/python25-apple
sysutils/python_select/files/python25-apple.mtln
sysutils/python_select/files/python26-apple
sysutils/python_select/files/python26-apple.mtln
sysutils/python_select/files/python27-apple
sysutils/python_select/files/python27-apple.mtln
textproc/doclifter/Portfile
textproc/unicode/Portfile
textproc/xmlbird/Portfile
www/clearsilver/Portfile
www/lighttpd/files/patch-conf.diff
www/webkit-gtk-2.0/Portfile
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