← Back to team overview

kicad-developers team mailing list archive

Re: KiCad scripting supported in the release or not

 

The swig scripting support must be built against the correct version of
python so I don't see how this would work.  The same goes for wxPython
support.  Even if you could get it to work, it would be an investment in
developers time that could be spent doing some much more valuable to the
project.

On 10/4/2015 12:26 PM, David Godfrey wrote:
> Rather than doing this at compile time, can it be done at run or install
> time instead.
> ie: if the relevant python support is available enable the scripting
> features dynamically, otherwise leave them disabled.
> This could be done using 2 shared libraries (.so or .dll etc) one has
> all of the scripting hooks in it that are functional, the other has
> dummy hooks that either do nothing, or raise errors as appropriate.
> 
> David G
> 
> On 03/10/15 23:56, Wayne Stambaugh wrote:
>> Shamelessly pilfered from the movie "Karate Kid",
>>
>> build config tools rule #1: Always check for features, not platforms.
>> build config tools rule #2: go back and learn rule #1.
>>
>> Yes we could check for msys but it is possible (however painful) that
>> someone may have actually patched, built, and installed python on mingw
>> (in fact the msys2 folks and Brian's kicad-winbuilder have kindly done
>> that for us) so testing for existence of python is a more robust test
>> which will work on every platform.  However, the existence of python on
>> the build system does not ensure it's existence on the install target
>> system unless you use a system that has some kind of package manager
>> that ensures the dependencies are met.
>>
>> On 10/2/2015 11:12 PM, David Godfrey wrote:
>>> Surely it would be possible to detect which msys version is available,
>>> and automatically enable scripting if msys2 is found?
>>>
>>>
>>> On 03/10/15 02:32, Wayne Stambaugh wrote:
>>>> This cannot be done because of the old msys1/mingw32 builds which
>>>> require Brian's kicad-winbuilder in order to build all of the
>>>> dependencies correctly.  Build python and wxpython on msys1/mingw32
>>>> is a
>>>> major hassle which has been eliminated with the new msys2/mingw32/64.
>>>> For the stable release, I would prefer that packagers enable scripting
>>>> on a case by case basis.  We certainly can discuss turning it on by
>>>> default after the stable release and dumping support for the old
>>>> msys1/mingw32 platform.
>>>>
>>>> On 10/2/2015 2:24 PM, Nick Østergaard wrote:
>>>>> Hello
>>>>>
>>>>> Since we have been discussing the python scripting stuff recently, I
>>>>> would like to hear if it is supposed to be officially supported or
>>>>> not.
>>>>>
>>>>> The thing is that it is by default OFF in the build scripts. This is
>>>>> choice likely to affect many linux distributions build configuraiton.
>>>>>
>>>>> I would actually suggest that we enable it by default. Any comments?
>>>>>
>>>>> Regards
>>>>> Nick
>>>>>
>>>>> _______________________________________________
>>>>> Mailing list: https://launchpad.net/~kicad-developers
>>>>> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
>>>>> Unsubscribe : https://launchpad.net/~kicad-developers
>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>
>>>> _______________________________________________
>>>> Mailing list: https://launchpad.net/~kicad-developers
>>>> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
>>>> Unsubscribe : https://launchpad.net/~kicad-developers
>>>> More help   : https://help.launchpad.net/ListHelp
>>>>
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~kicad-developers
>>> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~kicad-developers
>>> More help   : https://help.launchpad.net/ListHelp
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help   : https://help.launchpad.net/ListHelp
>>
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp



References