|
| 1 | +######################### |
| 2 | +Getting Started with IVPM |
| 3 | +######################### |
| 4 | + |
| 5 | +Installing IVPM |
| 6 | +*************** |
| 7 | + |
| 8 | +IVPM must be installed before it can be used to work with a project. Typically, |
| 9 | +the easiest approach is to install IVPM as a user-installed package: |
| 10 | + |
| 11 | +..code-block:: bash |
| 12 | + |
| 13 | + % python3 -m pip install --user ivpm |
| 14 | + |
| 15 | +Once this is done, you can invoke IVPM either via the entry-point script (ivpm) |
| 16 | +or as a Python module: |
| 17 | + |
| 18 | +..code-block:: bash |
| 19 | + |
| 20 | + % ivpm --help |
| 21 | + % python3 -m ivpm --help |
| 22 | + |
| 23 | +Initializing an Exiting IVPM Project |
| 24 | +************************************ |
| 25 | +After fetching the source for an IVPM-enabled project, the `ivpm update` command |
| 26 | +is used to fetch source dependencies and initialize a Python virtual environment |
| 27 | +for the project. |
| 28 | + |
| 29 | +The IVPM project, itself, is IVPM-enabled. The steps to fetch and initialize |
| 30 | +the project are shown below (assuming ivpm has already been installed): |
| 31 | + |
| 32 | +..code-block:: bash |
| 33 | + |
| 34 | + % git clone https://github.com/fvutils/ivpm |
| 35 | + % cd ivpm |
| 36 | + % ivpm update |
| 37 | + |
| 38 | +Note that, by default, IVPM clones sub-projects using your ssh public key. If |
| 39 | +this key has not been registered with a Git server, then cloning any projects |
| 40 | +from that server will fail. Git projects can be cloned using https |
| 41 | +(ie anonymously) by running `ivpm update -a`. |
| 42 | + |
| 43 | +IVPM performs the following tasks as a part of the `update` operation: |
| 44 | +- Fetches the source for each dependent project (eg .git, .tar.gz, .jar, etc) |
| 45 | +- Identifies dependent projects that are, themselves, IVPM-enabled and |
| 46 | + determines sub-dependencies |
| 47 | +- Identifies dependent projects that are Python projects and dependencies |
| 48 | + from PyPi. Installs these into the project-local Python virtual |
| 49 | + environment, with source projects installed in `editable` mode. |
| 50 | + |
| 51 | +Initializing a New IVPM Project |
| 52 | +******************************* |
| 53 | + |
| 54 | + |
0 commit comments