<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 2: import site.py pulls in too many modules</title><link>https://sourceforge.net/p/py2exe/feature-requests/2/</link><description>Recent changes to 2: import site.py pulls in too many modules</description><atom:link href="https://sourceforge.net/p/py2exe/feature-requests/2/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 31 Jul 2002 10:26:38 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/py2exe/feature-requests/2/feed.rss" rel="self" type="application/rss+xml"/><item><title>import site.py pulls in too many modules</title><link>https://sourceforge.net/p/py2exe/feature-requests/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Attempting to use py2exe on a program that &lt;br /&gt;
contains 'import site' causes a very large number of &lt;br /&gt;
modules to be included in the build, including all of the &lt;br /&gt;
tk stuff.&lt;/p&gt;
&lt;p&gt;The reason appears to be that site.py can import pydoc, &lt;br /&gt;
and pydoc references lots including all the web stuff and &lt;br /&gt;
tkinter. The work around is simply to put --&lt;br /&gt;
exclude=pydoc on the command line, however it took &lt;br /&gt;
quite some time to find which module was responsible.&lt;/p&gt;
&lt;p&gt;It would be nice if there was some easy way to ask &lt;br /&gt;
py2exe why it included a particular module.&lt;/p&gt;
&lt;p&gt;It would also be nice if there was a list of default &lt;br /&gt;
exclusions (ignore module 'x' when imported only by 'y').&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Duncan Booth</dc:creator><pubDate>Wed, 31 Jul 2002 10:26:38 -0000</pubDate><guid>https://sourceforge.netbcadeab804bd6ebaaea6b959a73bf3999dd8c5dc</guid></item></channel></rss>