[issue12246] create installation path if it's non-existent

2011-06-05 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: I've changed the patch to represent what I've since learned. It now just displays a message, instead of silently creating the missing path. -- Added file: http://bugs.python.org/file22259/display-warning.diff

[issue12246] create installation path if it's non-existent

2011-06-05 Thread R. David Murray
R. David Murray added the comment: Yes. If the directory gets created without Python being installed, then you don't have a working python installation. Assuming we are talking about site-packages. I have no idea what purelib is or anything about the packaging internals. -- _

[issue12246] create installation path if it's non-existent

2011-06-05 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: Are there cases where my patch would result in site-packages directory installed in an unwanted place? -- ___ Python tracker ___ ___

[issue12246] create installation path if it's non-existent

2011-06-05 Thread R. David Murray
R. David Murray added the comment: I'm not sure I understand your confusion, but perhaps what you are missing is that we don't support installing 3rd party packages inside a source tree, only into an installed Python, and installing Python creates the site-packages directory in $prefix.

[issue12246] create installation path if it's non-existent

2011-06-04 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: s/use/user -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue12246] create installation path if it's non-existent

2011-06-04 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: But this part of the code runs only when you want to install a 3rd party module isn't it? What you are proposing simply adds a delay, for the use will have to then add that directory manually. Or is there something I'm missing here? --

[issue12246] create installation path if it's non-existent

2011-06-04 Thread Éric Araujo
Éric Araujo added the comment: We do not want to create a directory under $prefix before installation. This would be a sort of dirty half-installation. When you have an uninstalled, unconfigured Python, you cannot install modules without giving a prefix option: this sounds good to me.

[issue12246] create installation path if it's non-existent

2011-06-03 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: On Fri, 2011-06-03 at 16:18 +, Éric Araujo wrote: > Éric Araujo added the comment: > > Ah, I understand; I have a $srcdir/Lib/site-packages directory, but packaging > wants to install into $prefix/site-packages, which does not exist. +1 to > addin

[issue12246] create installation path if it's non-existent

2011-06-03 Thread Éric Araujo
Éric Araujo added the comment: Ah, I understand; I have a $srcdir/Lib/site-packages directory, but packaging wants to install into $prefix/site-packages, which does not exist. +1 to adding a nice message. Tshepang, would you like to update your patch? -- ___

[issue12246] create installation path if it's non-existent

2011-06-03 Thread Tarek Ziadé
Tarek Ziadé added the comment: s/should get/should not get/ -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12246] create installation path if it's non-existent

2011-06-03 Thread Tarek Ziadé
Tarek Ziadé added the comment: Strange, you should get a /usr/[local]/lib/python3.3/site-packages when you just run "./configure; make" It looks like you have a dev environment that has installed some stuff -- ___ Python tracker

[issue12246] create installation path if it's non-existent

2011-06-03 Thread Éric Araujo
Éric Araujo added the comment: Hm, in my dev environment (checkout of 3.3), site-packages exists. -- ___ Python tracker ___ ___ Pytho

[issue12246] create installation path if it's non-existent

2011-06-03 Thread Tarek Ziadé
Tarek Ziadé added the comment: This is probably because Tshepang works in a dev environment. I think we should have a nice message like "The installation path xxx seems not to exist, aborting installation" -- ___ Python tracker

[issue12246] create installation path if it's non-existent

2011-06-03 Thread Éric Araujo
Éric Araujo added the comment: This looks like an invalid bug to me; Python itself creates the site-packages directory, with a README file if I remember correctly. If the sysadmin removes the directory, it’s their problem, not a Python bug. Do you agree? --

[issue12246] create installation path if it's non-existent

2011-06-02 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe : If I happen to not have the directory, $PREFIX/python3.3/site-packages, I get an erroneous message telling me that I don't write permissions. -- assignee: tarek components: Distutils2 files: create-dir-if-nonexistent.diff keywords: patch messag