How to disable tk inclusion in py build

Fredrik Lundh fredrik at pythonware.com
Wed Jun 28 04:41:40 EDT 2006


venkatbo at yahoo.com wrote:

>> since _tkinter.so is only built if it's found by the setup script,
>> and if built, it's only loaded if you actually use it, why bother
>> "disabling" it ?
>
> I don't want it to build tk into the py dist, even if it finds it on
> the build box - its not needed in the deployment. Keeping it
> out will make the deployed pkg leaner.

so don't deploy it.

if you want a lean package, you should use a deployment script that copies
the stuff you need; relying on the build process isn't very reliable (and means
more work when it's time to upgrade to a newer Python).

</F> 






More information about the Python-list mailing list