Skip to content

Commit d3267d1

Browse files
committed
nix: setup direnv
1 parent bff6f33 commit d3267d1

3 files changed

Lines changed: 39 additions & 0 deletions

File tree

.envrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
if command -v nix >/dev/null; then
2+
use flake
3+
fi
4+
5+
export PYTHONPATH="$PWD/build/python/Release:$PYTHONPATH"

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ eigen/eigen.pxd
55
*.cpp
66
setup.py
77
build
8+
result*
9+
.direnv/

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,38 @@ If you want more features feel free to open an issue or submit a pull request. :
2020
Installing
2121
------
2222

23+
### Nix
24+
25+
#### Run
26+
27+
To get a python shell with Eigen3ToPython installed
28+
29+
```sh
30+
nix run github:jrl-umi3218/Eigen3ToPython
31+
```
32+
33+
Then
34+
```python
35+
import eigen
36+
```
37+
38+
#### Develop
39+
40+
To develop, use
41+
42+
```
43+
gh repo clone jrl-umi3218/Eigen3ToPython
44+
direnv allow # activates a nix develop environment and set the python path
45+
cmake -B build $cmakeFlags
46+
cmake --build build
47+
```
48+
49+
Then
50+
```python
51+
import eigen
52+
# latest bindings built from source
53+
```
54+
2355
### Ubuntu LTS (22.04, 24.04, 26.04)
2456

2557
You must first setup our package mirror:

0 commit comments

Comments
 (0)