Skip to content

LNT should install using current "best practice" for Python #77

@DavidSpickett

Description

@DavidSpickett

Quoting @ldionne :

Eventually, we can move away from setup.py and replace it by pyproject.toml which is the current best practice, but that should be done separately.

A colleague of mine is an expert here, opening this issue so they can tell us what they recommend.

The current installation instructions are: https://llvm.org/docs/lnt/quickstart.html#installation

Checkout the LNT sources:
git clone https://github.com/llvm/llvm-lnt.git ~/lnt

Create a new virtual environment for the LNT application and activate it:
python3 -m venv .venv
source .venv/bin/activate

Install LNT into the virtual environment:
pip install -r requirements.txt

There are 3 requirements files:

  • One for the client (this is what we will soon be using for the buildbots)
  • One for the server (that includes the client file, creating a superset of it)
  • One with the standard requirements.txt name. Purely so that the "obvious" install command works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions