This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: wrong module installation dir on Windows
Type: behavior Stage: resolved
Components: Distutils, Distutils2, Documentation Versions: Python 3.1, Python 3.2, Python 3.3, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: brian.curtin Nosy List: alexis, brian.curtin, docs@python, eric.araujo, louiscipher, python-dev, r.david.murray, techtonik, tim.golden
Priority: normal Keywords: easy, patch

Created on 2011-04-12 10:47 by techtonik, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
issue133572.py33.patch louiscipher, 2011-04-25 17:19 review
issue133572.py33.patch louiscipher, 2011-04-27 17:07 review
Messages (11)
msg133571 - (view) Author: anatoly techtonik (techtonik) Date: 2011-04-12 10:47
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
msg133572 - (view) Author: anatoly techtonik (techtonik) Date: 2011-04-12 11:12
Other Windows prefixes are probably wrong too.
msg133575 - (view) Author: anatoly techtonik (techtonik) Date: 2011-04-12 12:50
How about 'easy' keyword?
msg133576 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2011-04-12 12:52
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.
msg133577 - (view) Author: anatoly techtonik (techtonik) Date: 2011-04-12 13:00
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.
msg134397 - (view) Author: Bryce Verdier (louiscipher) Date: 2011-04-25 17:19
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.
msg134521 - (view) Author: Mark Mc Mahon (markm) * Date: 2011-04-27 00:54
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?
msg134596 - (view) Author: Bryce Verdier (louiscipher) Date: 2011-04-27 17:07
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.
msg135093 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-05-04 03:02
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
msg135094 - (view) Author: Brian Curtin (brian.curtin) * (Python committer) Date: 2011-05-04 03:03
Thanks for the patches and reviews!
msg135115 - (view) Author: anatoly techtonik (techtonik) Date: 2011-05-04 11:12
It's always a pleasure. ;)
History
Date User Action Args
2022-04-11 14:57:16adminsetgithub: 56043
2011-05-04 12:42:31brian.curtinsetstatus: open -> closed
2011-05-04 11:12:54techtoniksetmessages: + msg135115
2011-05-04 03:03:56brian.curtinsetresolution: fixed
messages: + msg135094

assignee: brian.curtin
type: behavior
stage: needs patch -> resolved
2011-05-04 03:02:18python-devsetnosy: + python-dev
messages: + msg135093
2011-05-02 17:14:01r.david.murraysetassignee: docs@python -> (no value)

nosy: + tim.golden, brian.curtin
2011-04-27 17:07:57louisciphersetfiles: + issue133572.py33.patch
nosy: - brian.curtin, markm
messages: + msg134596

2011-04-27 00:54:14markmsetnosy: + markm
messages: + msg134521
2011-04-26 20:53:12brian.curtinsetnosy: + brian.curtin
2011-04-25 17:19:45louisciphersetfiles: + issue133572.py33.patch

nosy: + louiscipher
messages: + msg134397

keywords: + patch
2011-04-15 17:02:22eric.araujosetnosy: + eric.araujo, alexis

components: + Distutils, Distutils2
versions: + Python 3.1, Python 3.2, Python 3.3
2011-04-12 13:08:16brian.curtinsetnosy: - brian.curtin
2011-04-12 13:00:27techtoniksetmessages: + msg133577
2011-04-12 12:52:47r.david.murraysetnosy: + r.david.murray
messages: + msg133576
2011-04-12 12:51:20ezio.melottisetkeywords: + easy
2011-04-12 12:50:51techtoniksetmessages: + msg133575
2011-04-12 12:32:04brian.curtinsetstage: needs patch
2011-04-12 11:12:04techtoniksetmessages: + msg133572
2011-04-12 10:48:27ezio.melottisetnosy: + brian.curtin
2011-04-12 10:47:35techtonikcreate