Django

Code

Changeset 5503

Show
Ignore:
Timestamp:
06/20/07 01:23:15 (1 year ago)
Author:
adrian
Message:

Fixed #4537 -- Added note to docs/install.txt about get_python_lib() shortcut. Thanks, Carl Karsten

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/install.txt

    r5495 r5503  
    8686``site-packages``. 
    8787 
    88 If you installed Django from a Python Egg, remove the Django ``.egg`` file, 
     88If you installed Django from a Python egg, remove the Django ``.egg`` file, 
    8989and remove the reference to the egg in the file named ``easy-install.pth``. 
    9090This file should also be located in your ``site-packages`` directory. 
     
    9393 
    9494    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:
    9797 
    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()" 
    9999 
    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.) 
    105102 
    106103Install the Django code 
     
    1411381. Make sure you have Subversion_ installed. 
    1421392. Check out the Django code into your Python ``site-packages`` directory. 
     140 
    143141   On Linux / Mac OSX / Unix, do this:: 
    144142 
    145143       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 
    147145 
    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.) 
    149149 
    150150   On Windows, do this::