-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
1366 lines (1355 loc) · 70 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>State of Pillow</title>
<link rel="stylesheet" href="dist/bundle.css">
<link rel="shortcut icon" type="image/png" href="img/favicon.png">
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<h1>State of Pillow</h1>
<img class="img-thumbnail" width="50%" src="img/ploneconf.png">
<h4>December 8, 2020</h4>
<aside class="notes">
Welcome to the "State of Pillow" talk at Plone Conference 2020 located online in fabulous virtual reality. Not yet but maybe someday.
</aside>
</section>
<section>
<img class="img-thumbnail" src="img/tweet.png">
<aside class="notes">
This tweet from the Plone conference Twitter account is why I am here today. This very tweet and my undying love for Plone and the Plone community. It was made from the Plone Conference Twitter account,
</aside>
</section>
<section>
<img class="img-thumbnail" src="img/erico.png">
<aside class="notes">
But I believe it was written by Érico Andrei. And if not, then here's a nice picture of Érico.
</aside>
</section>
<section>
<img class="img-thumbnail" src="img/tweet5.png">
<aside class="notes">
It says "the community misses me" and I miss the Plone community too. It's good to be back. I haven't done much Plone development or integration since Plone 4 and I'm very curious about present day Plone.
</aside>
</section>
<section>
<h1>Thank you</h1>
<h1>🙏</h1>
<aside class="notes">
Thank you Érico and Plone community for having me back. And thank you Plone for existing, because without Plone there would be no Pillow.
</aside>
</section>
<section>
<img class="img-thumbnail" width="50%" src="img/pillow-logo-dark-text-1280x640.png">
<h1 class="mt-5">❤️ </h1>
<img class="img-thumbnail" width="50%" src="img/plone.png">
<aside class="notes">
I'll say it again: Pillow would not exist if not for Plone. So thank you Plone for existing, so we can all have a nice Python imaging library.
</aside>
</section>
<section>
<img class="img-thumbnail" src="img/tweet2.png">
<aside class="notes">
Back to Twitter. Of course my response was "oh no I have to do work". Preparing for a talk is a lot of work. A crazy lot of work. But I did it and here we are. I hope you enjoy it.
</aside>
</section>
<section>
<h1>Alex Clark</h1>
<img class="img-thumbnail" src="img/aclark-jobs.jpg">
<h4 class="pt-5">Creator of Python Pillow</h4>
<aside class="notes">
I hope you enjoy it as much as I have enjoyed creating Pillow and watching it grow up. Hello. I am Alex Clark. Creator of Python Pillow.
</aside>
</section>
<section>
<img class="img-thumbnail" width="80%" src="img/slide12.jpg">
<p>Tres, Alex, Tarek, Russ @ Plone Conference 2008</p>
<aside class="notes">
I'm also this guy from Plone Conference 2008.
</aside>
</section>
<section>
<img src="img/pillow-logo-light-text-1280x640.png">
<aside class="notes">
Pillow is the "friendly" PIL fork. Originally stylized as "friendly" in quotes, now just plain friendly.
</aside>
</section>
<section>
<h2>Friendly</h2>
<img src="img/pillow-logo-light-text-1280x640.png">
<h2>PIL fork</h2>
<aside class="notes">
I included "friendly" in the description because I wanted to convey a collaborative goal. That, and I really didn't want to annoy Fredrik. Or at least I wanted to annoy him as little as possible.
</aside>
</section>
<section>
<img class="img-thumbnail" src="img/wikipedia.png">
<a target="_blank" href="https://en.wikipedia.org/wiki/Python_Imaging_Library">https://en.wikipedia.org/wiki/Python_Imaging_Library</a>
<aside class="notes">
PIL is the Python Imaging Library, by Fredrik Lundh and contributors. Thank you Fredrik and contributors. PIL has its own Wikipedia page which is nice and over the years, various references to Pillow have been added, which is also very nice.
</aside>
</section>
<section>
<h1>The Story of Pillow</h1>
<aside class="notes">
Before we get to the State of Pillow, I have to tell you the Story of Pillow. I wrote a blog entry once, called "The Story of Pillow", but I couldn't find it, so I'll have to try to remember.
</aside>
</section>
<section>
<h1>Raise your Zoom hand ✋ if you know the story</h1>
<aside class="notes">
Pillow began in 2010 with an email I sent to the Image-SIG mailing list. Anyone remember this email?
</aside>
</section>
<section>
<img class="img-thumbnail" src="img/slide2.png">
<a target="_blank" href="https://mail.python.org/pipermail/image-sig/2010-July/006423.html">https://mail.python.org/pipermail/image-sig/2010-July/006423.html</a>
<aside class="notes">
This is the email I sent to the Image-SIG mailing list to announce the release of Pillow 1.0 in 2010. I recommend you read the full thread.
</aside>
</section>
<section>
<h1>Read these</h1>
<a target="_blank" href="https://mail.python.org/pipermail/image-sig/2010-July/thread.html">https://mail.python.org/pipermail/image-sig/2010-July/thread.html</a>
<a target="_blank" href="https://mail.python.org/pipermail/image-sig/2010-August/thread.html">https://mail.python.org/pipermail/image-sig/2010-August/thread.html</a>
<aside class="notes">
It spans two months from late July, through early August, 2010, and contains many interesting comments.
</aside>
</section>
<section>
<h1>Image-SIG</h1>
<img class="img-thumbnail" src="img/july.png">
<a target="_blank" href="https://mail.python.org/pipermail/image-sig/2010-July/thread.html">https://mail.python.org/pipermail/image-sig/2010-July/thread.html</a>
</ul>
<aside class="notes">
I always enjoy looking through these threads, which is why you are seeing them here. My announcement was sent at the end of July 2010.
</aside>
</section>
<section>
<h1>Image-SIG</h1>
<img class="img-thumbnail" src="img/july-2.png">
<a target="_blank" href="https://mail.python.org/pipermail/image-sig/2010-July/006423.html">https://mail.python.org/pipermail/image-sig/2010-July/006423.html</a>
<aside class="notes">
So the link is at the bottom of the July 2010 threaded view.
</aside>
</section>
<section>
<h1>Image-SIG</h1>
<img class="img-thumbnail" src="img/august.png">
<a target="_blank" href="https://mail.python.org/pipermail/image-sig/2010-August/thread.html">https://mail.python.org/pipermail/image-sig/2010-August/thread.html</a>
<aside class="notes">
Most replies came in early August, so the links are at the top of the August 2010 threaded view.
</aside>
</section>
<section>
<h1>Image-SIG</h1>
<img class="img-thumbnail" src="img/august-2.png">
<a target="_blank" href="https://mail.python.org/pipermail/image-sig/2010-August/006429.html">https://mail.python.org/pipermail/image-sig/2010-August/006429.html</a>
<aside class="notes">
Including Fredrik's reply, which came on Aug 1 2010.
</aside>
</section>
<section>
<h4>Image-SIG</h4>
<img class="img-thumbnail" width="80%" src="img/slide1.png">
<a target="_blank" href="https://mail.python.org/pipermail/image-sig/2010-August/006429.html">https://mail.python.org/pipermail/image-sig/2010-August/006429.html</a>
<aside class="notes">
Here it is.
</aside>
</section>
<section>
<h4>Image-SIG</h4>
<img class="img-thumbnail" width="80%" src="img/slide16.png">
<a target="_blank" href="https://mail.python.org/pipermail/image-sig/2010-August/006429.html">https://mail.python.org/pipermail/image-sig/2010-August/006429.html</a>
<aside class="notes">
I love this sentence in particular. Why do I love this sentence?
</aside>
</section>
<section>
<h1>Image-SIG</h1>
<blockquote>"At least a packaging
fork means that someone's over there is producing something more than
invectives, but I'd still prefer a patch."</blockquote>
<p>— Fredrik Lundh on Pillow</p>
<aside class="notes">
It provides validation of some kind, but also "invectives"? I had to look that one up.
</aside>
</section>
<section>
<img class="img-thumbnail" width="50%" src="img/invective2.png">
<aside class="notes">
Insulting or abusive language. Not good.
</aside>
</section>
<section>
<h4>Image-SIG</h4>
<img class="img-thumbnail" width="80%" src="img/slide20.png">
<a target="_blank" href=""></a>
<a target="_blank" href="https://mail.python.org/pipermail/image-sig/2010-August/006428.html">https://mail.python.org/pipermail/image-sig/2010-August/006428.html</a>
<aside class="notes">
That was Fredrik's direct reply to me, but he responded early in the thread to someone else.
</aside>
</section>
<section>
<h1>Standards change</h1>
<pre class="bg-white text-dark p-3">
> Although the "PIL" and "Image*" packages themselves do not
> respect python standards (should be from imaging import .., or
> something alike).
If you had been paying attention, you'd noticed that "python
standards" change all the time, depend on what the latest minibosses
think (suggestion: look up old versions of PEP 8 before you post stuff
about how others ignore the "standards").
</pre>
<a target="_blank" href="https://mail.python.org/pipermail/image-sig/2010-August/006428.html">https://mail.python.org/pipermail/image-sig/2010-August/006428.html</a>
<aside class="notes">
Now we are getting somewhere.
</aside>
</section>
<section>
<h1>How did we get here?</h1>
<aside class="notes">
To explain how we got here we need to go back.
</aside>
</section>
<section>
<img class="img-thumbnail" src="img/nirvana.jpg">
<h4>February 1991</h4>
<aside class="notes">
We need to go all the way back to February of 1991. Who knows what happened in February 1991?
</aside>
</section>
<section>
<h1>Timeline</h1>
<div class="timeline mb-5">
<div class="col-6 left">
<div class="content">
<h2>1991</h2>
<p>Python 0.9.0 (alt.sources)</p>
</div>
</div>
</div>
<a target="_blank" href="https://en.wikipedia.org/wiki/History_of_Python">https://en.wikipedia.org/wiki/History_of_Python</a>
<aside class="notes">
Python was born. Guido posted it to usenet. It was actually born in the late 80s but published in 1991.
</aside>
</section>
<section>
<h1>Ancient releases</h1>
<blockquote>Andrew Dalke was clever and persistent enough to scrape Python 0.9.1 out of the Usenet alt.sources archives and assemble a compressed tarball. It's here mostly as a historical relic.</blockquote>
<a target="_blank" href="https://www.python.org/download/releases/early/">https://www.python.org/download/releases/early/</a>
<aside class="notes">
In fact you can still download Python 0.9.1 from a section of python.org called "Ancient Releases".
</aside>
</section>
<section>
<h1>"Ancient"</h1>
<aside class="notes">
"Ancient releases". A looong time ago. So what happened next during these ancient times?
</aside>
</section>
<section>
<img class="img-thumbnail" src="img/foos.jpg">
<h4>June 1995</h4>
<aside class="notes">
Who knows what happened in June 1995?
</aside>
</section>
<section>
<h1>Timeline</h1>
<div class="timeline">
<div class="col-6 left">
<div class="content">
<h2>1991</h2>
<p>Python 0.9.0 (alt.sources)</p>
</div>
</div>
<div class="col-6 right">
<div class="content">
<h2>1995</h2>
<p>PIL</p>
</div>
</div>
</div>
<aside class="notes">
PIL was born. I don't know the details, but
</aside>
</section>
<section>
<img class="img-thumbnail" src="img/slide9.png">
<a target="_blank" href="https://mail.python.org/pipermail/image-sig/2005-June/003377.html">https://mail.python.org/pipermail/image-sig/2005-June/003377.html</a>
<aside class="notes">
We do know that Fredrik celebrated PIL's 10 year anniversary in 2005.
</aside>
</section>
<section>
<h1>Arbitrary milestones issue!</h1>
<h2>By wiredfool</h2>
<blockquote>"We're at 2000 stars! Seems like only last month that we were at 1000."</blockquote>
<a target="_blank" href="https://github.com/python-pillow/Pillow/issues/1512">https://github.com/python-pillow/Pillow/issues/1512</a>
<p>Oct 27, 2015</p>
<aside class="notes">
We know this thanks to Eric Soroos' arbitrary milestone issue. I'll get to that later. A little bit of foreshadowing there.
</aside>
</section>
<section>
<img class="img-thumbnail" width="80%" src="img/Windows98.png">
<h4>1998</h4>
<aside class="notes">
Who knows what this is?
</aside>
</section>
<section>
<h1>Timeline</h1>
<div class="timeline mb-5">
<div class="col-6 left">
<div class="content">
<h2>1998</h2>
<p>Zope</p>
</div>
</div>
</div>
<a target="_blank" href="https://old.zope.org/Members/paul/BusinessDecision/">https://old.zope.org/Members/paul/BusinessDecision/</a>
<aside class="notes">
It's Windows 98. Also in 1998 Zope, the world's first web object publishing system was open sourced by Zope Corporation and version 1 was released to the public. Who knows what happened one year after that?
</aside>
</section>
<section>
<img class="img-thumbnail" width="80%" src="img/party-like-its-1999.jpg">
<aside class="notes">
A year after that it was 1999 and something else important happened in 1999.
</aside>
</section>
<section>
<img class="img-thumbnail" src="img/addfolder.jpg">
<aside class="notes">
I'll give you a hint.
</aside>
</section>
<section>
<h1>Timeline</h1>
<div class="timeline">
<div class="col-6 left">
<div class="content">
<h2>1998</h2>
<p>Zope</p>
</div>
</div>
<div class="col-6 right">
<div class="content">
<h2>1999</h2>
<p>Zope2</p>
</div>
</div>
</div>
<aside class="notes">
That's right Zope version 2 was released in 1999. What we all now know as Zope2 was released. Now we're running out of century.
</aside>
</section>
<section>
<img class="img-thumbnail" width="60%" src="img/y2k.png">
<a target="_blank" href="https://knowyourmeme.com/memes/events/y2k-bug/photos">https://knowyourmeme.com/memes/events/y2k-bug/photos</a>
<aside class="notes">
Next up, Y2K. The year 2000. Who knows what important thing relevant to this story happened in the year 2000? This is a tough one.
</aside>
</section>
<section>
<h1>Timeline</h1>
<div class="timeline">
<div class="col-6 left">
<div class="content">
<h2>2000</h2>
<p>Python 2.0 (distutils)</p>
</div>
</div>
</div>
<aside class="notes">
Python 2.0 was released and in Python 2.0 was the distutils.
</aside>
</section>
<section>
<img class="img-thumbnail" width="80%" src="img/distutils.png">
<aside class="notes">
This is how we installed Python software in the year 2000.
</aside>
</section>
<section>
<img class="img-thumbnail" width="80%" src="img/distutils2.png">
<aside class="notes">
python setup.py install. distutils made that work. And by "work" I mean made it importable. No pip. No easy_install. Just Python. And it still works. This is Fredriks' PIL 1.1.7 and Catalina's Python 2.7.
</aside>
</section>
<section>
<img src="img/plone2002.png">
<aside class="notes">
In 2001, a star is born.
</aside>
</section>
<section>
<img src="img/plone2002-2.png">
<aside class="notes">
That's plone.org in 2001.
</aside>
</section>
<section>
<img width="70%" src="img/ploneorg2020.png">
<aside class="notes">
Here's plone.org in 2020.
We've come a long way.
</aside>
</section>
<section>
<h1>Timeline</h1>
<div class="timeline">
<div class="col-6 left">
<div class="content">
<h2>2000</h2>
<p>Python 2.0 (distutils)</p>
</div>
</div>
<div class="col-6 right">
<div class="content">
<h2>2001</h2>
<p>Plone</p>
</div>
</div>
</div>
<aside class="notes">
Now it's 2001 and we need to get all the way back to 2010.
</aside>
</section>
<section>
<img class="img-thumbnail" src="img/Eris_and_dysnomia2.jpg">
<aside class="notes">
So up next, at random, because I couldn't find any culturally significant milestone to correspond with the next year of interest, another star is born.
</aside>
</section>
<section>
<img class="img-thumbnail" src="img/Eris_and_dysnomia2.jpg">
<a target="_blank" href="https://en.wikipedia.org/wiki/Eris_(dwarf_planet)">https://en.wikipedia.org/wiki/Eris_(dwarf_planet)</a>
<aside class="notes">
A dwarf planet!
</aside>
</section>
<section>
<img class="img-thumbnail" src="img/Eris_and_dysnomia2.jpg">
<a target="_blank" href="https://en.wikipedia.org/wiki/Eris_(dwarf_planet)">https://en.wikipedia.org/wiki/Eris_(dwarf_planet)</a>
<h1>2005</h1>
<aside class="notes">
A dwarf planet was discovered in 2005. Along with?
</aside>
</section>
<section>
<h1>Timeline</h1>
<div class="timeline mb-5">
<div class="col-6 left">
<div class="content">
<h2>2005</h2>
<p>Buildout (Internal)</p>
</div>
</div>
</div>
<a target="_blank" href="http://www.buildout.org/en/latest/topics/history.html">http://www.buildout.org/en/latest/topics/history.html</a>
<aside class="notes">
Buildout. Buildout was created internally at Zope Corporation to replace Make. Makefiles gave way to INI-style configuration files. In 2006,
</aside>
</section>
<section>
<img class="img-thumbnail" width="80%" src="img/conference-2006-logo.gif">
<aside class="notes">
In 2006, I attended Plone Conference 2006.
</aside>
</section>
<section>
<h1>Timeline</h1>
<div class="timeline">
<div class="col-6 left">
<div class="content">
<h2>2005</h2>
<p>Buildout (Internal)</p>
</div>
</div>
<div class="col-6 right">
<div class="content">
<h2>2006</h2>
<p>setuptools</p>
<p>zc.buildout</p>
</div>
</div>
</div>
<aside class="notes">
Also in 2006, Setuptools was born. And what we now know as Buildout was released to the public.
</aside>
</section>
<section>
<h4>distutils</h4>
<blockquote><small>The distutils package provides support for building and installing additional modules into a Python installation. The new modules may be either 100%-pure Python, or may be extension modules written in C, or may be collections of Python packages which include modules coded in both Python and C.</small></blockquote>
<a target="_blank" href="https://docs.python.org/3/library/distutils.html">https://docs.python.org/3/library/distutils.html</a>
<aside class="notes">
So the distutils happened in 2000.
</aside>
</section>
<section>
<h1>Setuptools</h1>
<blockquote>Setuptools is a fully-featured, actively-maintained, and stable library designed to facilitate packaging Python projects.</blockquote>
<a target="_blank" href="https://setuptools.readthedocs.io/en/latest/">https://setuptools.readthedocs.io/en/latest/</a>
<aside class="notes">
And the setuptools happened in 2006.
</aside>
</section>
<section>
<h1>Buildout</h1>
<blockquote>Buildout is a tool for automating software assembly.</blockquote>
<a target="_blank" href="http://www.buildout.org/en/latest/index.html">http://www.buildout.org/en/latest/index.html</a>
<aside class="notes">
And the Buildout happened in 2006.
</aside>
</section>
<section>
<h1>How did we get here?</h1>
<aside class="notes">
Remember I asked: how did we get here? How did we get to the birth of Pillow in 2010?
</aside>
</section>
<section>
<h1>Issues</h1>
<ul>
<li>Python and PIL were created in 1991 and 1995 respectively.</li>
<li>Distutils was added to Python core in 2000 in Python 2.0.</li>
<li>PIL used distutils.</li>
</ul>
<aside class="notes">
We got there "because issues".
</aside>
</section>
<section>
<h1>Issues</h1>
<ul>
<li>Plone is Buildout-able as of 3.2a1 (2008)</li>
<li>Buildout requires setuptools</li>
<li>PIL is not setuptools compatible</li>
</ul>
<aside class="notes">
And more issues.
</aside>
</section>
<section>
<h1>Issues</h1>
<ul>
<li>Installation</li>
<li>Runtime</li>
<li>Human</li>
</ul>
<aside class="notes">
And even more issues. People were fighting about "import Image".
</aside>
</section>
<section>
<code>>>> import Image</code>
<aside class="notes">
People were fighting about this.
</aside>
</section>
<section>
<h1>Standards change</h1>
<pre class="bg-white text-dark p-3">
> Although the "PIL" and "Image*" packages themselves do not
> respect python standards (should be from imaging import .., or
> something alike).
If you had been paying attention, you'd noticed that "python
standards" change all the time, depend on what the latest minibosses
think (suggestion: look up old versions of PEP 8 before you post stuff
about how others ignore the "standards").
</pre>
<a target="_blank" href="https://mail.python.org/pipermail/image-sig/2010-August/006428.html">https://mail.python.org/pipermail/image-sig/2010-August/006428.html</a>
<aside class="notes">
Remember: standards change.
</aside>
</section>
<section>
<h1>Like watching a car crash</h1>
<aside class="notes">
As I look back on it now, it's like watching a car crash in slow motion.
</aside>
</section>
<section>
<img src="img/road-junction.jpg">
<aside class="notes">
I started picturing a four way intersection and I found this image and I flipped the cars around so they were all headed toward each other. Then I wrote the names of all the significant players on top of the cars.
</aside>
</section>
<section>
<img width="50%" src="img/mindblown.gif">
<aside class="notes">
So they all met and there was a big collision and my head exploded. Why did my head explode?
</aside>
</section>
<section>
<h1>This. Did. Not. Work.</h1>
<pre class="text-light bg-info rounded">
# buildout.cfg
[buildout]
parts = plone
[plone]
recipe = plone.recipe.zope2instance
eggs =
PIL
Plone
</pre>
<aside class="notes">
Because I couldn't do what I wanted to, which was to use PIL in a buildout.
</aside>
</section>
<section>
<h1>And. I. Really. Wanted. It. Too.</h1>
<pre class="text-light bg-info rounded">
# buildout.cfg
[buildout]
parts = plone
[plone]
recipe = plone.recipe.zope2instance
eggs =
PIL
Plone
</pre>
<aside class="notes">
I really wanted this to "just work". And it didn't.
</aside>
</section>
<section>
<img src="img/slide14.png">
<a target="_blank" href="https://mail.python.org/pipermail/image-sig/2010-August/006443.html">https://mail.python.org/pipermail/image-sig/2010-August/006443.html</a>
<aside class="notes">
Not only that, but this started happening. Third-party repackagings of PIL.
</aside>
</section>
<section>
<h1>Maybe this worked?</h1>
<pre class="text-light bg-info rounded">
# buildout.cfg
[buildout]
find-links = https://dist.plone.org/thirdparty/PIL-1.1.7.tar.gz
parts = plone
[plone]
recipe = plone.recipe.zope2instance
eggs =
PIL
Plone
</pre>
<aside class="notes">
Here's one of these third party packages in use.
</aside>
</section>
<section>
<img class="img-thumbnail" src="img/7047_plone20site20admincov.jpg">
<aside class="notes">
I wrote a Plone book and it was published, perhaps not coincidentally, in July 2010.
</aside>
</section>
<section>
<img class="img-thumbnail" src="img/psa3.jpg">
<aside class="notes">
I included this technique in the book.
</aside>
</section>
<section>
<img class="img-thumbnail" src="img/psa4.jpg">
<aside class="notes">
I had to explain "PILwoTk".
</aside>
</section>
<section>
<img class="img-thumbnail" src="img/psa2.jpg">
<aside class="notes">
I had to explain the "PIL problem".
</aside>
</section>
<section>
<img class="img-thumbnail" width="50%" src="img/invective2.png">
<aside class="notes">
Referring to PIL as "the problem" is probably an invective.
</aside>
</section>
<section>
<h1>Guilty</h1>
<aside class="notes">
My apologies to Fredrik.
</aside>
</section>
<section>
<img class="img-thumbnail" src="img/psa1.jpg">
<aside class="notes">
I mentioned pip, but I'm not entirely sure why.
</aside>
</section>
<section>
<h3>As Good as It Gets (1997)</h3>
<blockquote>
Melvin Udall : I've got this, what, ailment? My doctor, a shrink that I used to go to all the time, he says that in fifty or sixty percent of the cases, a pill really helps. I hate pills. Very dangerous thing, pills. Hate. I'm using the word "hate" here, about pills. Hate.
</blockquote>
<a target="_blank" href="https://www.imdb.com/title/tt0119822/?ref_=tt_ch">https://www.imdb.com/title/tt0119822/?ref_=tt_ch</a>
<aside class="notes">
I hated this situation. I'm using the word "hate" to describe how I felt about "the PIL problem".
</aside>
</section>
<section>
<h1>Maybe this worked?</h1>
<pre class="text-light bg-info rounded">
# buildout.cfg
[buildout]
find-links = https://dist.plone.org/thirdparty/PIL-1.1.7.tar.gz
parts = plone
[plone]
recipe = plone.recipe.zope2instance
eggs =
PIL
Plone
</pre>
<aside class="notes">
Remember I said "Maybe this worked?"
</aside>
</section>
<section>
<h1>It did. But why? At what cost?</h1>
<aside class="notes">
It did. I put it in my book. Importing "setup" from setuptools instead of distutils and repackaging worked.
</aside>
</section>
<section>
<img width="80%" src="img/slide15.png">
<a target="_blank" href="https://pypi.org/project/PIL/#history">https://pypi.org/project/PIL/#history</a>
<aside class="notes">
The newest PIL on PyPI was, and still is, 1.1.6.
</aside>
</section>
<section>
<img width="80%" src="img/slide18.png">
<a target="_blank" href="https://pypi.org/project/PIL/#history">https://pypi.org/project/PIL/#history</a>
<aside class="notes">
With find-links, we can add the third party distribution link with newer version 1.1.7 to our buildout.
</aside>
</section>
<section>
<h1>Resolution?</h1>
<pre class="bg-info p-3">
[buildout]
find-links = https://dist.plone.org/thirdparty/PIL-1.1.7.tar.gz
</pre>
<aside class="notes">
With no PIL version specified and the PyPI index, PIL 1.1.7 is installed.
</aside>
</section>
<section>
<h1>Unless</h1>
<pre class="text-light bg-info rounded p-3">
[buildout]
newest = false
</pre>
<h1>!?</h1>
<aside class="notes">
Unless newest equals false!
</aside>
</section>
<section>
<h1>Kidding!</h1>
<p>
<code>newest = false</code>
</p>
<h2>Only matters if</h2>
<ul class="mt-3">
<li>PIL already installed</li>
<li>Network down</li>
</ul>
<a target="_blank" href="http://www.buildout.org/en/latest/reference.html#buildout-configuration-options">http://www.buildout.org/en/latest/reference.html#buildout-configuration-options</a>
<aside class="notes">
Kidding. But things could still go wrong.
</aside>
</section>
<section>
<img width="100%" src="img/what-is-this-i-dont-even.jpg">
<aside class="notes">
I wanted things to not go wrong. To be less ambiguous.
</aside>
</section>
<section>
<blockquote>"For this you will pay a terrible price."</blockquote>
<p>—Ancient Proverb</p>
<aside class="notes">
Using third party distributions was OK but I wanted something better.
</aside>
</section>
<section>
<h1>Like watching a car crash</h1>
<aside class="notes">
Again as I look back on it now, it's like watching a car crash in slow motion.
</aside>
</section>
<section>
<img src="img/road-junction.jpg">
<aside class="notes">
With Python, PIL, Zope, distutils, setuptools and Buildout all colliding.
</aside>
</section>
<section>
<img width="50%" src="img/mindblown.gif">
<aside class="notes">
And my head exploding.
</aside>
</section>
<section>
<h1>Hence, Pillow</h1>
<aside class="notes">
Then one day, I had enough.
</aside>
</section>
<section>
<h1>Timeline</h1>
<div class="timeline">
<div class="col-6 left">
<div class="content">
<h2>2010</h2>
<p>Pillow 1.0</p>
</div>
</div>
</div>
<aside class="notes">
I decided to take a popular third party repackaging and upload it to PyPI.
</aside>
</section>
<section>
<img class="img-thumbnail" src="img/slide17.png">
<aside class="notes">
Here it is. It's still there on dist.plone.org. Now served via https.
</aside>
</section>
<section>
<img class="img-thumbnail" width="80%" src="img/diff.png">
<aside class="notes">
Created by Chris McDonough and Hanno Schlichting
</aside>
</section>
<section>
<img class="img-thumbnail" width="80%" src="img/diff2.png">
<aside class="notes">
Importing setup from setuptools and calling find_packages(). While preparing for this talk I realized I forgot to credit Chris. I credited Hanno plenty, but not Chris.
</aside>
</section>
<section>
<img class="img-thumbnail" src="img/tweet3.png">
<aside class="notes">
So I immediately tweeted an apology and created a pull request.
</aside>
</section>
<section>
<img class="img-thumbnail" width="80%" src="img/fixed.png">
<a target="_blank" href="https://github.com/python-pillow/Pillow/pull/5078">https://github.com/python-pillow/Pillow/pull/5078</a>
<aside class="notes">
The pull request was accepted.
</aside>
</section>
<section>
<h3>As Good as It Gets (1997)</h3>
<blockquote>
Melvin Udall : I've got this, what, ailment? My doctor, a shrink that I used to go to all the time, he says that in fifty or sixty percent of the cases, a pill really helps. I hate pills. Very dangerous thing, pills. Hate. I'm using the word "hate" here, about pills. Hate.
</blockquote>
<a target="_blank" href="https://www.imdb.com/title/tt0119822/?ref_=tt_ch">https://www.imdb.com/title/tt0119822/?ref_=tt_ch</a>
<aside class="notes">
So I hated the status quo so much I decided to take the next step.
</aside>
</section>
<section>
<h4>Image-SIG</h4>
<img width="80%" src="img/slide.png">
<a target="_blank" href="https://mail.python.org/pipermail/image-sig/2010-August/006480.html">https://mail.python.org/pipermail/image-sig/2010-August/006480.html</a>
<aside class="notes">
Incidentally there was at least one patch sent by Laurence after Pillow 1.0 was released. Describing in detail the various import issues. Resolving the issues by using setuptools.
</aside>
</section>
<section>
<h4>Image-SIG</h4>
<img width="80%" src="img/slide19.png">
<a target="_blank" href="https://mail.python.org/pipermail/image-sig/2010-August/006480.html">https://mail.python.org/pipermail/image-sig/2010-August/006480.html</a>
<aside class="notes">
But at that point I didn't care. It wasn't too late, Fredrik could have accepted the patch. But that never happened.
</aside>
</section>
<section>
<img width="100%" src="img/what-is-this-i-dont-even.jpg">
<aside class="notes">
Lesson learned: use setuptools.
</aside>
</section>
<section>
<h1>Timeline</h1>
<div class="timeline">
<div class="col-6 left">
<div class="content">
<h2>2010</h2>
<p>Pillow 1.0</p>
</div>
</div>
</div>
<aside class="notes">
With Pillow 1.0 I got the buildout of my dreams.
</aside>
</section>
<section>
<h1>Buildout 👍</h1>
<pre class="text-light bg-info rounded">
# buildout.cfg
[buildout]
parts = pillow
[pillow]
recipe = zc.recipe.egg
</pre>
<aside class="notes">
This works.
</aside>
</section>
<section>
<h1>Buildout 👍</h1>
<pre class="text-light bg-info rounded">
# buildout.cfg
[buildout]
parts = plone
[plone]
recipe = plone.recipe.zope2instance
eggs =
Pillow
Plone
</pre>
<aside class="notes">
And this works.
</aside>
</section>
<section>
<img width="70%" src="img/fireworks.webp">
<aside class="notes">
I wept tears of joy.
</aside>
</section>
<section>
<h1>Timeline</h1>
<div class="timeline">
<div class="col-6 left">
<div class="content">
<h2>2010</h2>
<p>Pillow 1.0</p>
</div>
</div>
<div class="col-6 right">
<div class="content">
<h2>2012</h2>
<p>Pillow 1.7.8</p>
</div>
</div>
</div>
<aside class="notes">
Now I can finally tell you the state of Pillow
</aside>
</section>
<section>
<h1>Packaging fork</h1>
<blockquote>Pillow is a "friendly" fork of the Python Imaging Library. The goal is to see if any improvement can be made to the packaging situation by opening up development to the public.</blockquote>
<p>—Alex Clark, Pillow 1.0 README</p>
<aside class="notes">
First the first two years, Pillow was a "packaging fork"
</aside>
</section>
<section>
<img src="img/unfriendly.png">
<a target="_blank" href="https://mail.python.org/pipermail/image-sig/2012-December/007120.html">https://mail.python.org/pipermail/image-sig/2012-December/007120.html</a>
<aside class="notes">
We added filesystem paths to setup.py, made other small changes, and attempted to upstream fixes to PIL.
</aside>
</section>
<section>
<h1>Unfriendly fork?</h1>
<img src="img/unfriendly2.png">
<a target="_blank" href="https://mail.python.org/pipermail/image-sig/2012-December/007120.html">https://mail.python.org/pipermail/image-sig/2012-December/007120.html</a>
<aside class="notes">
Then a guy named Brian Crowell (fluggo) came along and added support for Python 3. I sent a mail Image-SIG about our inability to continue tracking changes upstream.
</aside>
</section>
<section>
<img src="img/python3.png">
<aside class="notes">
Python 3 support came in two PRs.
</aside>
</section>
<section>
<img src="img/python3-2.png">
<aside class="notes">
This felt really good.
</aside>
</section>