How to enforce a particular Python version during port build

Blair Zajac blair at orcaware.com
Sun Sep 1 01:45:09 UTC 2019


The problem could be scons. It looks like 

https://github.com/mongodb/mongo/blob/r4.2.0/SConstruct

requires Python 3.5 but Scons runs against Python 2.7:

$ head /opt/local/bin/scons
#!/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7

So try changing python.default_version in scons’ portfile and rebuilding it.

Blair

> On Aug 31, 2019, at 6:27 PM, Ralph Seichter <abbot at monksofcool.net> wrote:
> 
> Dang, forgot the link:
> 
> [1] https://github.com/mongodb/mongo/blob/master/docs/building.md
> 



More information about the macports-dev mailing list