[IPython-dev] git submodules

Darren Dale dsdale24 at gmail.com
Fri May 3 14:01:58 EDT 2013


Min,

Did you also consider using git subtrees?

On Fri, May 3, 2013 at 1:25 AM, MinRK <benjaminrk at gmail.com> wrote:
> As of this week, IPython now gets its third-party javascript dependencies
> from a git submodule.
> This adds an extra wrinkle to using IPython from git, but the basics all
> work:
>
>     git clone git://github.com/ipython/ipython.git
>     cd ipython && python setup.py install
>     # or
>     cd ipython && python setup.py develop
>
> # or one step with pip:
>
>     pip install -e git://github.com/ipython/ipython.git#egg=ipython
>
> But where you might get tripped up is updating an existing repo via `git
> pull`, which does not update the submodule (the plan is for this to be
> needed very rarely, but it will come up, especially now that the submodule
> is new).  The gist is that if you get 404s on files in `static/components`
> while running the notebook, the first thing to try is:
>
>     python setup.py submodule
>
> which just does
>
>     git submodule init
>     git submodule update --recursive
>
> to make sure that the components submodule is up to date.
>
> We will try to get this as automatic as we can, so that we trip up / confuse
> / annoy as few people as possible, but we are figuring things out as we go
> right now.
>
> -MinRK
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>



More information about the IPython-dev mailing list