← Back to team overview

kicad-developers team mailing list archive

Re: Python shebangs

 


On 11/6/2018 11:15 AM, Simon Richter wrote:
> Hi Steven,
> 
> On 06.11.2018 15:45, Steven A. Falco wrote:
> 
>> I've done a little research, and apparently, the concern is that "env" may find a locally installed python interpreter that doesn't work the same as the system python interpreter, and that can result in subtle bugs.  Of course the locally-installed interpreter may have been installed specifically because of bugs in the system interpreter!
> 
> In this case, they will also need to take care of the SWIG module.
> 
>> 2) Add a Fedora-only patch to change the shebangs into something acceptable.  I'd probably set them to "#!/usr/bin/python2".
> 
> IMO, that is the way to go. AFAIK, kicad can also be compiled against
> python 3 now, so that might need some extra care to make consistent.
> 

This would be my preference as well as it will not create issues for
other platforms.

Cheers,

Wayne


References