[issue11834] wrong module installation dir on Windows

New submission from anatoly techtonik <techtonik@gmail.com>: http://docs.python.org/install/index.html#how-installation-works Correct standard installation location for third-party modules on Windows for Python 2.x is prefix/Lib/site-packages ---------- assignee: docs@python components: Documentation messages: 133571 nosy: docs@python, techtonik priority: normal severity: normal status: open title: wrong module installation dir on Windows versions: Python 2.7 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

Changes by Ezio Melotti <ezio.melotti@gmail.com>: ---------- nosy: +brian.curtin _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

anatoly techtonik <techtonik@gmail.com> added the comment: Other Windows prefixes are probably wrong too. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

Changes by Brian Curtin <brian@python.org>: ---------- stage: -> needs patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

anatoly techtonik <techtonik@gmail.com> added the comment: How about 'easy' keyword? ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

Changes by Ezio Melotti <ezio.melotti@gmail.com>: ---------- keywords: +easy _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

R. David Murray <rdmurray@bitdance.com> added the comment: It's a doc issue. Doc issues are pretty much by definition easy in the sense of the easy keyword (doable in a day) (unless they are controversial), so we don't bother to attach the easy keyword to them. ---------- nosy: +r.david.murray _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

anatoly techtonik <techtonik@gmail.com> added the comment: Target auditory for the `easy` keyword are largely unaware of this fact. It also may keep people off if they run into uneasy doc problem. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

Changes by Brian Curtin <brian@python.org>: ---------- nosy: -brian.curtin _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

Changes by Éric Araujo <merwok@netwok.org>: ---------- components: +Distutils, Distutils2 nosy: +alexis, eric.araujo versions: +Python 3.1, Python 3.2, Python 3.3 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

Bryce Verdier <bryceverdier@gmail.com> added the comment: Here is a patch for the documentation. I'm not quite sure about the scripts and data part. Tested with Paramiko and a new install of 2.7 to see what would happen and that was the result. ---------- keywords: +patch nosy: +louiscipher Added file: http://bugs.python.org/file21773/issue133572.py33.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

Changes by Brian Curtin <brian@python.org>: ---------- nosy: +brian.curtin _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

Mark Mc Mahon <mtnbikingmark@gmail.com> added the comment: Reviewing the patch (issue133572.py33.patch): You have used forward slashes for the first change - but back slashes for the others. I see that other places in the existing docs use back slashes when referring to windows paths. I have never used the --prefix option - but I am surprised that it would install scripts to prefix\Lib\site-packages (without the prefix option scripts are installed in pythondir\Scripts. Maybe installing something like grin/pylint/etc which has an executable script is a way to verify? ---------- nosy: +markm _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

Bryce Verdier <bryceverdier@gmail.com> added the comment: Ok, so after getting some off list help, I changed the defaults to what they should be. Also, Mark was right, "--install-scripts" generally puts things in pythondir\Scripts... as tested with pylint, mako, and some others. I changed data back to Data... though I could no verify it. Even with --install-data, I couldn't seem to find a new Data directory. Maybe I was doing something wrong. Anyway, here is the new patch. ---------- nosy: -brian.curtin, markm Added file: http://bugs.python.org/file21806/issue133572.py33.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

Changes by R. David Murray <rdmurray@bitdance.com>: ---------- assignee: docs@python -> nosy: +brian.curtin, tim.golden _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

Roundup Robot <devnull@devnull> added the comment: New changeset 175dcc8c4b23 by Brian Curtin in branch '3.1': Fix #11834. Correct site-packages paths. http://hg.python.org/cpython/rev/175dcc8c4b23 New changeset 03d511dec224 by Brian Curtin in branch '3.2': Fix #11834. Correct site-packages paths. http://hg.python.org/cpython/rev/03d511dec224 New changeset 066e63425228 by Brian Curtin in branch 'default': Fix #11834. Correct site-packages paths. http://hg.python.org/cpython/rev/066e63425228 New changeset 1a2f0f545f55 by Brian Curtin in branch '2.7': Fix #11834. Correct site-packages paths. http://hg.python.org/cpython/rev/1a2f0f545f55 ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

Brian Curtin <brian@python.org> added the comment: Thanks for the patches and reviews! ---------- assignee: -> brian.curtin resolution: -> fixed stage: needs patch -> committed/rejected type: -> behavior _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

anatoly techtonik <techtonik@gmail.com> added the comment: It's always a pleasure. ;) ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

Changes by Brian Curtin <brian@python.org>: ---------- status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

Changes by Ezio Melotti <ezio.melotti@gmail.com>: ---------- nosy: +brian.curtin _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

anatoly techtonik <techtonik@gmail.com> added the comment: Other Windows prefixes are probably wrong too. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

Changes by Brian Curtin <brian@python.org>: ---------- stage: -> needs patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

anatoly techtonik <techtonik@gmail.com> added the comment: How about 'easy' keyword? ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

Changes by Ezio Melotti <ezio.melotti@gmail.com>: ---------- keywords: +easy _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

R. David Murray <rdmurray@bitdance.com> added the comment: It's a doc issue. Doc issues are pretty much by definition easy in the sense of the easy keyword (doable in a day) (unless they are controversial), so we don't bother to attach the easy keyword to them. ---------- nosy: +r.david.murray _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

anatoly techtonik <techtonik@gmail.com> added the comment: Target auditory for the `easy` keyword are largely unaware of this fact. It also may keep people off if they run into uneasy doc problem. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

Changes by Brian Curtin <brian@python.org>: ---------- nosy: -brian.curtin _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

Changes by Éric Araujo <merwok@netwok.org>: ---------- components: +Distutils, Distutils2 nosy: +alexis, eric.araujo versions: +Python 3.1, Python 3.2, Python 3.3 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

Bryce Verdier <bryceverdier@gmail.com> added the comment: Here is a patch for the documentation. I'm not quite sure about the scripts and data part. Tested with Paramiko and a new install of 2.7 to see what would happen and that was the result. ---------- keywords: +patch nosy: +louiscipher Added file: http://bugs.python.org/file21773/issue133572.py33.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

Changes by Brian Curtin <brian@python.org>: ---------- nosy: +brian.curtin _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

Mark Mc Mahon <mtnbikingmark@gmail.com> added the comment: Reviewing the patch (issue133572.py33.patch): You have used forward slashes for the first change - but back slashes for the others. I see that other places in the existing docs use back slashes when referring to windows paths. I have never used the --prefix option - but I am surprised that it would install scripts to prefix\Lib\site-packages (without the prefix option scripts are installed in pythondir\Scripts. Maybe installing something like grin/pylint/etc which has an executable script is a way to verify? ---------- nosy: +markm _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

Bryce Verdier <bryceverdier@gmail.com> added the comment: Ok, so after getting some off list help, I changed the defaults to what they should be. Also, Mark was right, "--install-scripts" generally puts things in pythondir\Scripts... as tested with pylint, mako, and some others. I changed data back to Data... though I could no verify it. Even with --install-data, I couldn't seem to find a new Data directory. Maybe I was doing something wrong. Anyway, here is the new patch. ---------- nosy: -brian.curtin, markm Added file: http://bugs.python.org/file21806/issue133572.py33.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

Changes by R. David Murray <rdmurray@bitdance.com>: ---------- assignee: docs@python -> nosy: +brian.curtin, tim.golden _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

Roundup Robot <devnull@devnull> added the comment: New changeset 175dcc8c4b23 by Brian Curtin in branch '3.1': Fix #11834. Correct site-packages paths. http://hg.python.org/cpython/rev/175dcc8c4b23 New changeset 03d511dec224 by Brian Curtin in branch '3.2': Fix #11834. Correct site-packages paths. http://hg.python.org/cpython/rev/03d511dec224 New changeset 066e63425228 by Brian Curtin in branch 'default': Fix #11834. Correct site-packages paths. http://hg.python.org/cpython/rev/066e63425228 New changeset 1a2f0f545f55 by Brian Curtin in branch '2.7': Fix #11834. Correct site-packages paths. http://hg.python.org/cpython/rev/1a2f0f545f55 ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

Brian Curtin <brian@python.org> added the comment: Thanks for the patches and reviews! ---------- assignee: -> brian.curtin resolution: -> fixed stage: needs patch -> committed/rejected type: -> behavior _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

anatoly techtonik <techtonik@gmail.com> added the comment: It's always a pleasure. ;) ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________

Changes by Brian Curtin <brian@python.org>: ---------- status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11834> _______________________________________
participants (8)
-
anatoly techtonik
-
Brian Curtin
-
Bryce Verdier
-
Ezio Melotti
-
Mark Mc Mahon
-
R. David Murray
-
Roundup Robot
-
Éric Araujo