Debian Codegraph @

context/dev-environment.md

raw
1 # Development environment setup
2
3 ansible-core and all CLIs (including ansible-test) require a POSIX OS.
4 On Windows, use WSL (Windows Subsystem for Linux).
5
6 ## Editable install
7
8 Ansible development typically uses an editable installation after forking and cloning:
9
10 ```bash
11 pip install -e .
12 ```
13
14 ## Hacking script
15
16 An alternative to an editable installation is to source the `hacking/env-setup` script:
17
18 ```bash
19 source hacking/env-setup
20 ```
21
22 ## Running tests without installation
23
24 If you only need to run tests, you can invoke `ansible-test` directly without installing or sourcing the hacking script:
25
26 ```bash
27 bin/ansible-test sanity -v --docker default
28 ```