[Debian-science-sagemath] ipywidgets git workflow

Ximin Luo infinity0 at debian.org
Sat Nov 26 02:38:00 UTC 2016


Gordon Ball:
> [..]
> 
> Let me know how you want to split up working on this. I should have some
> time now to work on it. (IRC might be better to discuss - nick:chronitis).
> 
> I notice from d-devel that webpack is one of the targets of the big node
> packaging effort going on, which might make our lives a lot easier in
> the long run, although I suspect we can't afford to wait now if there is
> a chance of getting this in stretch.
> 

Yeah, we probably can't wait for that now. Still, it's good to know that my hacky solution will eventually be replaced. I'm really hating myself for writing such a monstrosity.

I've pushed some branches to git, make sure you check them all out locally first. Then you can check out the "fakewebpack" branch and take a look at debian/fakewebpack.mk. I've done steps 1-7, and 8,9,X are what's left to do, and after that we can continue with the rest of the Debian packaging.

However, you're probably more familiar with how ipywidgets is supposed to behave, so it would be good if you could sanity-check what I've done so far. Run:

$ cd debian
$ git checkout build -- upstream; git reset # note that you're still on the fakewebpack branch
$ ./fakewebpack.mk clean all-diff

If you get errors about "can't find module index for" try running `$ git checkout -- fakewebpack/*` then running the build again.

Once that succeeds, take a look in upstream-reproduce/*. See if ipywidgets / widgetsnbextension still work, when using these files instead of the "official" ones. (It would also be good if you could tell us how you're testing it.) If they don't work, then I'll have to re-visit step 5 and make the diff even more minimal.

(Note that I'm not building jupyter-js-widgets atm, it is too much effort :( I already spent a lot of time just getting docs and widgetsnbextension to this stage.)

I'll also be on IRC during the weekend, to talk more quickly with.

X

-- 
GPG: ed25519/56034877E1F87C35
GPG: rsa4096/1318EFAC5FBBDBCE
https://github.com/infinity0/pubkeys.git



More information about the Debian-science-sagemath mailing list