/usr/bin/python will be removed in macOS 12.3!

Bjarne D Mathiesen macintosh at mathiesen.info
Thu Feb 24 18:20:27 UTC 2022


$=> cd
/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports
$=> fgrep -R '/usr/bin/env python' * \
	| awk -F ':' '{print $1}' \
	| sort -u \
	| wc -l
     140
bjarne at MacPro 19:16:42
/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports
$=> fgrep -R '/usr/bin/env python' * \
	| awk -F ':' '{print $1}' \
	| sort -u
audio/xmms2/Portfile
databases/libpqxx/Portfile
devel/aap/files/patch-python27.diff
devel/cask/Portfile
devel/cppcheck/Portfile
devel/diffuse/Portfile
devel/distcc/Portfile
devel/flawfinder/Portfile
devel/git-cinnabar/Portfile
devel/git-cinnabar/files/patch-python3
devel/git-filter-repo/Portfile
devel/git-remote-hg/Portfile
devel/global/Portfile
devel/gtk-mac-bundler/Portfile
devel/icompile/Portfile
devel/kcov/files/bin-to-c-source.py.use-python38.patch
devel/meson/Portfile
devel/nodejs10/Portfile
devel/nodejs12/Portfile
devel/nodejs13/Portfile
devel/nodejs14/Portfile
devel/nodejs15/Portfile
devel/nodejs16/Portfile
devel/nodejs17/Portfile
devel/nodejs8/Portfile
devel/play/Portfile
devel/scons/files/python-interp.patch
devel/tortoisehg/Portfile
devel/viewvc/Portfile
games/pyfa/Portfile
games/ski/files/use-macports-python.patch
games/sounddecompress/Portfile
gis/grass7/Portfile
gis/grass7/files/patch-grass.py.diff
gis/openstreetmap-carto/Portfile
gnome/epiphany/files/patch-post-install-python.diff
gnome/gobject-introspection-devel/Portfile
gnome/mm-common/files/patch-use-our-python3.diff
gnome/virt-manager/Portfile
graphics/asymptote/Portfile
graphics/asymptote/files/patch-Makefile.diff
graphics/comix/Portfile
graphics/gimp-help-en/Portfile
graphics/gimp-resynthesizer/files/patch-python.diff
graphics/ipe-tools/files/patch-svgtoipe-svgtoipe.py.diff
graphics/libepoxy/files/patch-src-gen_dispatch.py.diff
irc/hexchat/files/patch-build-scripts-python3.diff
java/dualist/files/dualist-mecab
kde/py-pykde4/Portfile
lang/emscripten/files/patch-macports_python.diff
lang/ghc-bootstrap/files/clang-wrapper
lang/ghc/Portfile
lang/ispc/Portfile
lang/jython/Portfile
lang/llvm-10/Portfile
lang/llvm-11/Portfile
lang/llvm-3.3/Portfile
lang/llvm-3.4/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/python26/files/patch-Lib-cgi.py.diff
lang/python27/files/patch-Lib-cgi.py.diff
lang/python310/files/patch-Lib-cgi.py.diff
lang/python311-devel/files/patch-Lib-cgi.py.diff
lang/python32/files/patch-Lib-cgi.py.diff
lang/python33/files/patch-Lib-cgi.py.diff
lang/python34/files/patch-Lib-cgi.py.diff
lang/python35/files/patch-Lib-cgi.py.diff
lang/python36/files/patch-Lib-cgi.py.diff
lang/python37/files/patch-Lib-cgi.py.diff
lang/python38/files/patch-Lib-cgi.py.diff
lang/python39/files/patch-Lib-cgi.py.diff
math/dolfin/Portfile
math/libsvm/files/fselect.py
math/libsvm/files/gridregression.py
math/libsvm/files/plotroc.py
math/plda/Portfile
multimedia/mythtv.27/Portfile
multimedia/mythtv.28/Portfile
multimedia/openshot-qt/Portfile
multimedia/subdownloader/Portfile
net/avahi/files/build-db
net/davix/Portfile
net/ipcheck/Portfile
net/iproute2mac/Portfile
net/mosquitto/Portfile
net/munin/Portfile
news/hellanzb/files/patch-hellanzb.py.diff
print/fonttools-utils/Portfile
python/logcat-color3/Portfile
python/py-clang/files/setup.py
python/py-djvubind/Portfile
python/py-geoip/Portfile
python/py-gpilab-framework/Portfile
python/py-isce2/Portfile
python/py-jsonschema/files/patch-setup.py.diff
python/py-logcat-color/Portfile
python/py-magpy/Portfile
python/py-ngl/Portfile
python/py-pmw/Portfile
python/py-pmw/files/patch-pmw2.diff
python/py-pyrexdoc/files/patch-pyrexdoc.py
python/py-xlsx2csv/Portfile
python/quodlibet/Portfile
science/bali-phy/files/patch-bp_analyze.diff
science/bali-phy/files/patch-run_tests.py.diff
science/bowtie/Portfile
science/bowtie2/Portfile
science/gr-air-modes/files/patch-cmake_Modules_GrPython.cmake.diff
science/osmocore/files/patch-fix-python.devel.diff
science/osmocore/files/patch-fix-python.release.diff
science/pdb2pqr/Portfile
science/relax/files/relax.patch
science/root6/Portfile
science/sumo/Portfile
science/tophat/Portfile
science/yorick-spydr/Portfile
science/yorick-yao/Portfile
security/cfv/files/patch-cfv.diff
security/denyhosts/files/patch-daemon-control-dist.diff
security/sqlmap/Portfile
sysutils/autojump/Portfile
sysutils/bpytop/Portfile
sysutils/duplicity/Portfile
sysutils/edmv/Portfile
sysutils/lirc/Portfile
sysutils/pypi2port/Portfile
sysutils/terminator/Portfile
sysutils/zeroinstall-injector/Portfile
textproc/doclifter/Portfile
textproc/grc/Portfile
textproc/simstring/Portfile
textproc/txt2tags/Portfile
www/duckytool/Portfile
www/sitemap_gen/Portfile
www/uzbl/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