Opened 17 years ago
Closed 14 years ago
#6739 closed (fixed)
How to add symbolic links in Windows Vista
Reported by: | kwill | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | windows vista symbolic link installation development version svn | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
On: http://www.djangoproject.com/documentation/install/
Section: Installing the development version
Point: 3. Next, make sure that the Python interpreter can load Django’s code.
A symbolic link can also be created in Windows Vista using the mklink command from the command prompt. Assuming the Python site-packages folder is at C:\Python25\Lib\site-packages and the trunk SVN is at d:\code\django-trunk, this can be done as follows:
- Open command line window in Administrator mode
- Go to site-packages directory (in our example C:\Python25\Lib\site-packages)
- Execute
mklink /d django d:\code\django-trunk\django
- The output should appear as follows:
C:\Python25\Lib\site-packages>mklink /d django d:\code\django-trunk\django symbolic link created for django <<===>> d:\code\django-trunk\django C:\Python25\Lib\site-packages>dir Volume in drive C is SYSTEM Volume Serial Number is D038-E46A Directory of C:\Python25\Lib\site-packages 2008/03/09 11:03 AM <SYMLINKD> django [d:\code\django-trunk\django] (plus more folders in site-packages)
Attachments (2)
Change History (7)
comment:1 by , 17 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 14 years ago
comment:3 by , 14 years ago
Alternatively, I think the docs should just recommend creating a .pth
file, as mentioned here: http://docs.python.org/install/index.html#modifying-python-s-search-path
comment:4 by , 14 years ago
And by "alternatively", I mean that I didn't read the whole of adamv's comment before replying. But yeah, my vote's for .pth
by , 14 years ago
comment:5 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
mklink is available in Vista and later, but is not without problems. Share a folder containing links and then hit it with clients running XP, for instance. The Python docs ( http://docs.python.org/using/windows.html#finding-modules ) don't mention using mklinks on Windows either, so it is perhaps better to adhere to the tradition of installing directly into site-packages, using a .pth file, or adding a new folder to the PYTHONPATH, rather than suggest using mklinks.