How to enforce a particular Python version during port build

Fred Wright fw at fwright.net
Sun Sep 1 21:03:21 UTC 2019


On Sun, 1 Sep 2019, Clemens Lang wrote:
> On Sat, Aug 31, 2019 at 06:45:09PM -0700, Blair Zajac wrote:
>> The problem could be scons. It looks like
>
> Re-iterating on that, the problem is likely SCons, because it will
> filter all environment variables and thus ignore any settings you do in
> configure.env, build.env, destroot.env, unless you patch the SConstruct
> file specifically to not remove them from its environment.

True, but the only environment variable at issue was PATH, and changing 
that is almost never the right way to fix a port build problem, since it's 
best to decouple port builds from PATH as much as possible.  I already 
suggested two possible alternatives in this case.

Fred Wright


More information about the macports-dev mailing list