Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #4537 -- Added note to docs/install.txt about get_python_lib() …

…shortcut. Thanks, Carl Karsten

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5503 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 024c3daa11c8c16cf577d4e1faec329daa9d27ef 1 parent 761c0a4
Adrian Holovaty authored June 20, 2007

Showing 1 changed file with 11 additions and 11 deletions. Show diff stats Hide diff stats

  1. 22  docs/install.txt
22  docs/install.txt
@@ -85,23 +85,20 @@ If you installed Django using ``setup.py install``, uninstalling
85 85
 is as simple as deleting the ``django`` directory from your Python
86 86
 ``site-packages``.
87 87
 
88  
-If you installed Django from a Python Egg, remove the Django ``.egg`` file,
  88
+If you installed Django from a Python egg, remove the Django ``.egg`` file,
89 89
 and remove the reference to the egg in the file named ``easy-install.pth``.
90 90
 This file should also be located in your ``site-packages`` directory.
91 91
 
92 92
 .. admonition:: Where are my ``site-packages`` stored?
93 93
 
94 94
     The location of the ``site-packages`` directory depends on the operating
95  
-    system, and the location in which Python was installed. However, the
96  
-    following locations are common:
  95
+    system, and the location in which Python was installed. To find out your
  96
+    system's ``site-packages`` location, execute the following::
97 97
 
98  
-    * If you're using Linux: ``/usr/lib/python2.X/site-packages``
  98
+        python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"
99 99
 
100  
-    * If you're using Windows: ``C:\Python2.X\lib\site-packages``
101  
-
102  
-    * If you're using MacOSX: ``/Library/Python2.X/site-packages`` or
103  
-      ``/Library/Frameworks/Python.framework/Versions/2.X/lib/python2.X/site-packages/``
104  
-      (in later releases).
  100
+    (Note that this should be run from a shell prompt, not a Python interactive
  101
+    prompt.)
105 102
 
106 103
 Install the Django code
107 104
 =======================
@@ -140,12 +137,15 @@ latest bug fixes and improvements, follow these instructions:
140 137
 
141 138
 1. Make sure you have Subversion_ installed.
142 139
 2. Check out the Django code into your Python ``site-packages`` directory.
  140
+
143 141
    On Linux / Mac OSX / Unix, do this::
144 142
 
145 143
        svn co http://code.djangoproject.com/svn/django/trunk/ django_src
146  
-       ln -s `pwd`/django_src/django /usr/lib/python2.3/site-packages/django
  144
+       ln -s `pwd`/django_src/django SITE-PACKAGES-DIR/django
147 145
 
148  
-   (In the above line, change ``python2.3`` to match your current Python version.)
  146
+   (In the above line, change ``SITE-PACKAGES-DIR`` to match the location of
  147
+   your system's ``site-packages`` directory, as explained in the
  148
+   "Where are my ``site-packages`` stored?" section above.)
149 149
 
150 150
    On Windows, do this::
151 151
 

0 notes on commit 024c3da

Please sign in to comment.
Something went wrong with that request. Please try again.