Hi,<br><br>I support leaving out Py-Modules which are not relevant most scripts. <br><br>* TK - IMO, this can be left out, as it&#39;s mostly an additional UI library, which conflicts with some of the things our system does already<br>
* distutil, test - agreed<br>* curses - I doubt whether this has any uses, but it&#39;s probably too insignificant to worry about<br><br>I should also mention here, that we should add an option to the installers whether to install the local copy of python if we go ahead with this. <br>
<br>Regards,<br>Aligorith<br><br><br><div class="gmail_quote">On Mon, Dec 8, 2008 at 4:10 PM, Campbell Barton <span dir="ltr">&lt;<a href="mailto:ideasman42@gmail.com">ideasman42@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Last meeting we discussed weather to include all python modules<br>
(including modules bundled scripts don&#39;t use),<br>
this seemed a popular option which surprised me, since I recall extra<br>
size being a strong argument for some decisions in the past.<br>
<br>
Id prefer to include ALMOST all modules, just removing a few larger<br>
ones that are highly unlikely to be used by blender/python scripts.<br>
(to my knowledge have not been used yet for this purpose).<br>
Then again, if we&#39;re ok with adding ~8meg to Blenders download size,<br>
Im not going to argue too hard against it. :-)<br>
<br>
Keep in mind...<br>
* This discussion is only about the blender distributed on<br>
<a href="http://blender.org" target="_blank">blender.org</a>, linux distro&#39;s can still have a dynamic linked python.<br>
* Building your own blender can work as it does now. (probably have<br>
scons options for setting up a full python in the install DIR)<br>
* Even if we remove these modules from a blender bundle, a full python<br>
install would allow python devs to load them.<br>
* Adding modules back is also easy enough if we discover they are<br>
useful for blender.<br>
<br>
== Summery ==<br>
Tested with python 2.6.1 on windows, Sizes exclude python.exe, headers<br>
and libpython26.a (which only added up to a few 100k compressed<br>
anyway).<br>
<br>
Full Python<br>
&nbsp;- 25.5mb, 8.3mb zipped<br>
Without TK<br>
&nbsp;- 16.1mb, 5mb zipped<br>
Without TK, &quot;distutils&quot; and &quot;test&quot; modules<br>
- 10.1mb, 3.5mb zipped<br>
<br>
breakdown of module sizes uncompressed/compressed.<br>
TK - ~9.3mb uncompressed, 3.4 zipped. (installer reports TK to use<br>
13mb, not sure whats up with that)<br>
&quot;test&quot; modules, 4.2mb, 0.7mb zipped.<br>
&quot;distutils&quot; &nbsp;1mb . 0.4mb zipped.<br>
<br>
== Rationale ==<br>
&quot;TK&quot;, user interface modules, Id recommend excluding this because...<br>
1) Python without TK is an install option for win32 (note, its the<br>
ONLY module that can be unselected while installing), so we can<br>
exclude it while maintaining a complete python env.<br>
2) Blender has its own UI,<br>
3) Tk isnt popular compared py WX, QT, GTK,<br>
4) its fairly large<br>
5) this hasn&#39;t been used with blender for any non-experimental scripts<br>
AFAIK (feel free to link me to some blender tool that uses it)<br>
<br>
(tk modules)<br>
Tix - Tk Extension Widgets for Tkinter<br>
Tkinter - Interface to Tcl/Tk for graphical user interfaces<br>
turtle - Turtle graphics for Tk<br>
ScrolledText - Text widget with a vertical scroll bar.<br>
url: <a href="http://docs.python.org/modindex.html" target="_blank">http://docs.python.org/modindex.html</a><br>
<br>
<br>
&quot;test&quot; module, This isnt likely to be used by production tools,<br>
developers who want to use it can have python installed.<br>
summery: Regression tests package containing the testing suite for Python.<br>
url: <a href="http://docs.python.org/library/test.html#module-test" target="_blank">http://docs.python.org/library/test.html#module-test</a><br>
<br>
<br>
&quot;distutils&quot; module, is normally used from the command line to install<br>
python modules &quot;python setup.py build; python setup.py install&quot;, a bit<br>
like autotools &quot;/configure; make; make install&quot;, again, blender tools<br>
wont use this.<br>
<br>
summery: Support for building and installing Python modules into an<br>
existing Python installation.<br>
url: <a href="http://docs.python.org/library/distutils.html#module-distutils" target="_blank">http://docs.python.org/library/distutils.html#module-distutils</a><br>
<br>
-----<br>
<font color="#888888"><br>
<br>
--<br>
- Campbell<br>
_______________________________________________<br>
Bf-committers mailing list<br>
<a href="mailto:Bf-committers@blender.org">Bf-committers@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-committers" target="_blank">http://lists.blender.org/mailman/listinfo/bf-committers</a><br>
</font></blockquote></div><br>