提交 b128c979 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Converted more Mercurial instructions to Git.

上级 43f6562f
......@@ -60,7 +60,7 @@ The following libraries and software are optional:
For building the documentation. LaTeX_ and dvipng_ are also necessary
for math to show up as images.
`Mercurial <http://mercurial.selenic.com/>`_
`Git <http://git-scm.com>`_
To download bleeding-edge versions of Theano.
`pydot <https://code.google.com/p/pydot/>`_
......@@ -142,29 +142,29 @@ A contributor made rpm package for Mandriva_ 2010.2 of Theano 0.3.1.
.. _Mandriva: http://mib.pianetalinux.org/mib/quick/basic-rpms/mib-rpms/975-theano-031
Bleeding-edge (developer) install instructions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bleeding-edge install instructions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you are a developer of Theano, then check out the :ref:`dev_start_guide`.
If you want the bleeding-edge without developing the code you can use
pip for this
GIT_TODO: update these pip install instructions to use github.
If you want the bleeding-edge without developing the code you can use pip for
this with the command line below. Note that it will also try to download and
upgrade Theano's dependencies (like numpy and scipy). If you do not wish to do
so, add the ``--no-deps`` switch to it.
.. code-block:: bash
pip install --upgrade hg+http://hg.assembla.com/theano
pip install --upgrade git+git://github.com/Theano/Theano.git
or
or (if you want to install to a custom directory):
.. code-block:: bash
pip install --upgrade hg+http://hg.assembla.com/theano --install-option='--prefix=YOURPREFIX'
pip install --upgrade git+git://github.com/Theano/Theano.git --install-option='--prefix=YOURPREFIX'
The following are general instructions that will set you up with the
bleeding-edge version of Theano and allow you to hack it. First,
get the code using `Mercurial <http://mercurial.selenic.com/>`__:
get the code using `Git <http://git-scm.com>`__:
.. code-block:: bash
......@@ -179,9 +179,9 @@ From here, the easiest way to get started is
This will install a ``.pth`` file in your ``site-packages`` directory that
tells Python where to look for your Theano installation (i.e. in the
directory your just checked out of Mercurial). Using ``develop`` mode is
directory your just checked out of Github). Using ``develop`` mode is
preferable to ``install`` as any modifications you make in the checkout
directory (or changes you pull with Mercurial) will be automatically reflected
directory (or changes you pull with Git) will be automatically reflected
in the "installed" version without re-running ``python setup.py install``.
If you do not have permission to modify your ``site-packages`` directory you
......@@ -236,7 +236,7 @@ to your ``Theano`` folder and execute the following command:
.. code-block:: bash
hg pull -u
git pull
You should update frequently, bugs are fixed on a very regular basis.
......@@ -252,7 +252,7 @@ a Python (or IPython) interpreter,
>>> import theano
>>> theano.test()
You can also run them in-place from the Mercurial checkout directory by typing
You can also run them in-place from the Git checkout directory by typing
.. code-block:: bash
......@@ -370,7 +370,7 @@ Mac
.. code-block:: bash
$ sudo port install gcc44 py26-scipy mercurial
$ sudo port install gcc44 py26-scipy git
This will install all the required Theano dependencies. Note that
compiling gcc takes significant time (hours)! SciPy depends on ATLAS (a
......@@ -528,11 +528,9 @@ components as in Python(x,y) that are required by Theano, follow these steps:
At this point, whether you installed Python(x,y) or individual components, you
should have MinGW, Python, Numpy, Scipy and Nose installed.
In order to download Theano you will also need Mercurial, which you can get
`here <http://mercurial.selenic.com/downloads>`__.
You may install either the command
line Windows version or the TortoiseHG GUI version: it does not matter as
far as installing Theano is concerned.
In order to download Theano you will also need Git, which you can get
`here <http://git-scm.com/download>`__ (download the latest version of the
"Full installer for official Git" from the ``msysgit`` download page).
Installing Theano
~~~~~~~~~~~~~~~~~
......
......@@ -24,12 +24,33 @@ Accounts
To obtain developer access: register with `GitHub
<http://www.github.com/>`_ and create a fork of `Theano
<http://www.github.com/Theano/Theano>`_. Hack in your patches / features to your own fork,
and send a pull request.
(Just the standard github workflow.)
If you don't get any feedback, bug us on the theano-dev mailing list.
<http://www.github.com/Theano/Theano>`_.
Clone your fork locally with
.. code-block:: bash
git clone git@github.com:your_github_login/Theano.git
and add a reference to the 'central' Theano repository with
For info on how to run your personal fork of Theano, see :ref:`install_bleeding_edge`.
.. code-block:: bash
git remote add central git://github.com/Theano/Theano.git
When working on a new feature in your own fork, start from an up-to-date copy
of the trunk:
.. code-block:: bash
git fetch central
git checkout -b my_shiny_feature central/master
Once your code is ready for others to review, push your branch to your github fork:
.. code-block:: bash
git push -u origin my_shiny_feature
then go to your fork's github page on the github website, select your feature
branch and hit the "Pull Request" button in the top right corner.
If you don't get any feedback, bug us on the theano-dev mailing list.
Details about ``PYTHONPATH``
----------------------------
......@@ -70,12 +91,21 @@ mailing list.
.. _theano-users: https://groups.google.com/group/theano-users
To update your library to the latest revision, change directory (``cd``)
to your ``Theano`` folder and execute the following command:
To update your library to the latest revision, you should have a branch
that tracks the main trunk. You can add one with:
.. code-block:: bash
git fetch central
git branch trunk central/master
Once you have such a branch, in order to update it, do:
.. code-block:: bash
git checkout trunk
git pull
hg pull -u
Keep in mind that this branch should be "read-only": if you want to patch
Theano, do it in another branch like described above.
Nightly test
============
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论