dephell project register

Register a project in the system or in a venv.

What the command does:

  1. Creates egg-info in the root of the given project.
  2. Creates egg-link that points on the created egg-info.
  3. Creates a record in pth file (named dephell.pth) to make the project importable.

Note that it doesn’t install any dependencies. Despite that, the command is quite similar to what pip install -e . and python3 setup.py develop do.

In a global interpreter

Register the current project in a global Python interpreter:

dephell project register

Explicitly specify python interpreter to register in:

dephell project register  --python=3.6

See also how DepHell choice Python interpreter by default.

In a venv

Register the current project in the main venv of the current project:

dephell project register .

Register another project in the main env of the current project:

dephell project register ./some/path/ /another/path/

Register another project in the pytest env of the current project:

dephell project register --env=pytest ./path/to/project/

Register the current project in a specific venv:

dephell project register --venv=./path/to/venv .

Dephell uses from of the current project by default. You can explicitly specify another one:

dephell project register --from-format=poetry --from-path=pyproject.toml ./path/to/a/project/

See also

  1. dephell deps install to install dependencies of a project.
  2. Python lookup for details how you can specify Python version for commands.
  3. Full list of config parameters