Skip to content

Commit

Permalink
Update documentation for Python installation
Browse files Browse the repository at this point in the history
Since python/setup.py.in was removed, the top setup.py needs to be run to
install the Python bindings, but to avoid re-building the whole project,
the same build directory should be supplied.
  • Loading branch information
danielhers committed Aug 16, 2017
1 parent 793f316 commit 797fdfc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/source/python.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ The following is a list of all the commands needed to perform a manual install:
make -j 2 # replace 2 with the number of available cores
cd python
python setup.py install # or `python setup.py install --user` for a user-local install.
python ../../setup.py build --build-dir=.. install # add `--user` for a user-local install.
# this should suffice, but on some systems you may need to add the following line to your
# init files in order for the compiled .so files be accessible to Python.
Expand Down Expand Up @@ -149,12 +149,12 @@ in the system, run the following:
.. code:: bash
cd $PATH_TO_DYNET/build/python
python setup.py install --user
python ../../setup.py build --build-dir=.. install --user
The ``--user`` switch will install the module in your local
site-packages, and works without root privileges. To install the module
to the system site-packages (for all users), or to the current `virtualenv`
(if you are on one), run ``python setup.py install`` without this switch.
(if you are on one), run ``python ../../setup.py build --build-dir=.. install`` without this switch.

You should now have a working python binding (the ``dynet`` module).

Expand Down Expand Up @@ -253,7 +253,7 @@ After running ``make -j 2``, you should have the files ``_dynet.so`` and
``_gdynet.so`` in the ``build/python`` folder.

As before, ``cd build/python`` followed by
``python setup.py install --user`` will install the module.
``python ../../setup.py build --build-dir=.. install --user`` will install the module.



Expand Down

0 comments on commit 797fdfc

Please sign in to comment.