[Python-Dev] Generally boared by installation (Re: Setting project home path the best way)

Kristján Valur Jónsson kristjan at ccpgames.com
Tue Nov 20 10:06:30 CET 2012


I'm intrigued.  I thought this was merely so that one could do
python -m mypackage.mysubpackage
Can you refer me to the rationale and discussion about this feature?

K

From: Nick Coghlan [mailto:ncoghlan at gmail.com]
Sent: 18. nóvember 2012 11:25
To: Kristján Valur Jónsson
Cc: Christian Tismer; python-dev at python.org
Subject: Re: [Python-Dev] Generally boared by installation (Re: Setting project home path the best way)

Easily bundling dependencies is a key principle behind the ability to execute directories and zipfiles that contain a top level __main__.py file that was added back in 2.6 (although the zipfile version doesn't play nicely with extension modules).

Cheers,
Nick.

--
Nick Coghlan   |   ncoghlan at gmail.com<mailto:ncoghlan at gmail.com>   |   Brisbane, Australia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20121120/66800b3c/attachment.html>


More information about the Python-Dev mailing list