Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Python caches
__pycache__/
*.py[cod]
.pytest_cache

# Lighthouse Python module builds
dist/
python/lighthouse*.egg-info/
*.whl
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,23 @@ For vendor-specific versions of `torch` use the targets `ingress-torch-nvidia`,
</details>

To run the Python programs in this repo, either enter the virtual environment (`$ source .venv/bin/activate`) and execute a program _or_ execute each of the programs through `uv` (i.e. `$ uv run $EXE`), which will automatically run them inside the virtualenv.

## Installing lighthouse as a python package

You can also install lighthouse as a python package using `uv` and `pip`:

```
$ uv pip install .
$ python
Python 3.12.11 | packaged by conda-forge | (main, Jun 4 2025, 14:45:31) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import lighthouse
>>> lighthouse.__version__
'0.1.0a1'
```

In order to install the package including `ingress-torch` dependencies:

```
$ uv pip install .[ingress_torch_cpu]
```
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,7 @@ explicit = true
name = "torch_mlir"
url = "https://github.com/llvm/torch-mlir-release/releases/expanded_assets/dev-wheels"
explicit = true

[tool.setuptools.packages.find]
where = ["python"]
include = ["lighthouse*"]
1 change: 1 addition & 0 deletions python/lighthouse/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "0.1.0a1"