mirror of https://github.com/scrapy/scrapy.git
completed the install doc
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40512
This commit is contained in:
parent
a026e382ed
commit
e140b1e435
|
|
@ -1,6 +1,5 @@
|
|||
.. _install:
|
||||
|
||||
=====================
|
||||
How to install Scrapy
|
||||
=====================
|
||||
|
||||
|
|
@ -43,4 +42,40 @@ Or in Arch Linux do:
|
|||
Install Scrapy code
|
||||
===================
|
||||
|
||||
We're working hard to get the first release of Scrapy out. In the meantime, please download the latest development version from the Subversion_ repository.
|
||||
|
||||
To do this, follow this steps:
|
||||
|
||||
1. Check out Scrapy code (you will need to have Subversion_ installed):
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
svn co http://svn.scrapy.org/scrapy/trunk/ scrapy-trunk
|
||||
|
||||
2. Add Scrapy to your Python path. You can do this by making a symbolic link to your system ``site-packages`` directory like this:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
ln -s `pwd`/scrapy-trunk/scrapy SITE-PACKAGES/scrapy
|
||||
|
||||
Where ``SITE-PACKAGES`` is the location of your system ``site-packages`` directory, to find this out execute the following:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"
|
||||
|
||||
|
||||
Or by adding the ``scrapy-trunk`` directory to your ``PYTHONPATH`` environment variable, like this:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
export PYTHONPATH=`pwd`/scrapy-trunk:PYTHONPATH
|
||||
|
||||
|
||||
3. Make the ``scrapy-trunk/scrapy/bin/scrapy-admin.py`` script executable system-wide. To do this create a symbolic link to the file in a directory on your sistem path, like:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
ln -s `pwd`/scrapy-trunk/scrapy/bin/scrapy-admin.py /usr/local/bin
|
||||
|
||||
.. _Subversion: http://subversion.tigris.org/
|
||||
|
|
|
|||
Loading…
Reference in New Issue