writing-bots: Recommend using Python 3 to run tools/provision.

This commit is contained in:
Eeshan Garg 2018-05-02 18:58:51 -02:30 committed by Tim Abbott
parent 0ada5fa9d8
commit 7e379bbb76
1 changed files with 9 additions and 7 deletions

View File

@ -30,16 +30,18 @@ On this page you'll find:
2. `cd python-zulip-api` - navigate into your cloned repository.
3. `./tools/provision` - install all requirements in a Python virtualenv.
3. `python3 ./tools/provision` - install all requirements in a Python virtualenv.
4. Run the `source <activation/path>` command printed in the previous
step to activate the virtualenv.
4. The output of `provision` will end with a command of the form `source .../activate`;
run that command to enter the new virtualenv.
5. *Finished*. You should now see the name of your venv preceding your prompt, e.g. `(ZULIP-~1)`.
5. *Finished*. You should now see the name of your venv preceding your prompt,
e.g. `(zulip-api-py3-venv)`.
*Hint: `./tools/provision` installs `zulip`, `zulip_bots`, and
`zulip_botserver` in developer mode. This enables you to make changes
to the code after the packages are installed.*
*Hint: `provision` installs the `zulip`, `zulip_bots`, and
`zulip_botserver` packages in developer mode. This enables you to
make modify these packages and then run your modified code without
having to first re-install the packages or re-provision.*
## Writing a bot