← Back to team overview

kicad-developers team mailing list archive

Re: Footprint python plugin: Is it possible to merge ?

 

> I wonder if you could you set up a local github server on your system
> (assuming the github server software is freely available) and point the
> github plugin to 127.0.0.1?

Of course it will work, Simply set KIGITHUB with the local address.

> I know this is problematic, if it actually do perform COW and will not
sync anymore.

If you set your local repositories with git clone, then it will simply be a
matter of doing:

for prettyfolder in *
do
    cd prettyfolder
    git pull
    cd ..
done

On Mon, Nov 3, 2014 at 4:52 PM, Nick Østergaard <oe.nick@xxxxxxxxx> wrote:

> Aha, I did not know that the COW was working like that. Seems to work
> fine from the limited testing I just did. I do think that the need for
> existing dirs that allow_pretty_writing_to_this_dir specify is a bit
> strange, but I guess it is well thought out. It would become quite
> tedious to create the handfull of libs (or all) manually.
>
> I wonder if there is any posibility or scheme to make it cache by
> default somewhere. I know this is problematic, if it actually do
> perform COW and will not sync anymore. I hope I have understood the
> COW functionality correctly.
>
> 2014-11-03 21:56 GMT+01:00 Wayne Stambaugh <stambaughw@xxxxxxxxxxx>:
> > It's called copy on write and it already exits in the github plugin.  No
> > tuning necessary.  You just need to configure your fp-lib-table to take
> > advantage of it.  It is well documented the "Using the GitHub Plugin"
> > section of both the CvPcb and Pcbnew reference manuals.
> >
> > On 11/3/2014 3:27 PM, Jean-Paul Louis wrote:
> >> Hi Nick,
> >>
> >> The best would be to tune the github plugin to do just that. Access the
> footprints from git and have them stored locally, so changes would be
> faster, and user could work when not online.
> >> I thought that it was planned to have that working already (github
> access with local storage of data).
> >>
> >> Just my $0.02,
> >> Jean-Paul
> >> AC9GH
> >>
> >> On Nov 3, 2014, at 1:25 PM, Nick Østergaard <oe.nick@xxxxxxxxx> wrote:
> >>
> >>> Hi Jean-Samuel
> >>>
> >>> Aha, that makes sense.
> >>>
> >>> Maybe the following is a bad idea, but anyway -- here goes.
> >>> With that I guess one could even make a script that is cloning and
> >>> updating the kicad footprints from github and chaching them also.
> >>>
> >>> Nick
> >>>
> >>> 2014-11-03 18:28 GMT+01:00 Jean-Samuel Reynaud <js.reynaud@xxxxxxxxx>:
> >>>> Hi Nick,
> >>>>
> >>>> Sorry I'm not always clear in my explaination...
> >>>>
> >>>> This plugin provide a gateway to custom plugin writen in python.
> >>>> For example you can write a new plugin in python to fetch some
> footprint
> >>>> from a database for example...
> >>>>
> >>>> Thanks,
> >>>> Le 03/11/2014 17:37, Nick Østergaard a écrit :
> >>>>> Hi Jean-Samuel
> >>>>>
> >>>>> What exactly does this do? I guess a section for the documentation
> has
> >>>>> to be written to describe the purpose or functionality of this
> option.
> >>>>>
> >>>>> Does this plugin then run a python script that magically creates the
> >>>>> footprint you have in mind or? Does this provide a gateway to make
> >>>>> some custom plugin to fetch footprints from various sources from a
> >>>>> simple python?
> >>>>>
> >>>>> Sorry for all the questionmarks, but I don't quite get what exactly
> >>>>> this is. (I have not tried it yet)
> >>>>>
> >>>>> Nick
> >>>>>
> >>>>> 2014-11-03 15:14 GMT+01:00 Jean-Samuel Reynaud <js.reynaud@xxxxxxxxx
> >:
> >>>>>> Hi All,
> >>>>>>
> >>>>>> I wrote few months ago an extension to be able to write in python a
> >>>>>> footprint library plugin.
> >>>>>> ie: for the moment for footprint you have to choice between:
> >>>>>> - Kicad
> >>>>>> - Legacy
> >>>>>> - GitHub
> >>>>>> ...
> >>>>>> And I had write a "Python". You choose the python module to load
> (the
> >>>>>> module name as an option of the python plugin) and this python
> >>>>>> module have to implement some functions to do the job.
> >>>>>>
> >>>>>> This code is currently under a branch :
> >>>>>> lp:~kicad-developers/kicad/python_plugin
> >>>>>>
> >>>>>> Specific code is mainly in pcbnew/fppython/ and there is a python
> >>>>>> example in pcbnew/fppython/fppython_example.py.
> >>>>>>
> >>>>>> I regularly merge with upstream to maintain this branch up to date.
> >>>>>> I cleanned up the code to meet coding standard.
> >>>>>>
> >>>>>> Is it possible to merge on main branch ?
> >>>>>>
> >>>>>> Regards,
> >>>>>>
> >>>>>>
> >>>>>> _______________________________________________
> >>>>>> 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
>

Follow ups

References