How to execute scons in a python3 environment?

后端 未结 4 917
天命终不由人
天命终不由人 2021-01-11 16:58

I need to import python3 scripts within a scons script. (I use scons v3.0.1.7)

Is there a way to execute scons with python 3 ?

The offical scons site says

4条回答
  •  失恋的感觉
    2021-01-11 17:38

    I had to edit /usr/bin/scons and change the shebang from

    #! /usr/bin/python
    

    to

    #! /usr/bin/env python
    

    Make sure you are in a python3 virtual environment

提交回复
热议问题