Skip to content

Commit d65d7e5

Browse files
committed
Do not run setup.py directly
1 parent b444f39 commit d65d7e5

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ jobs:
2929
- name: Install Dependencies 📦
3030
run: pip install -r requirements.txt
3131

32-
- name: Build Python Extension 🛠️
33-
run: python3 src/setup.py build
34-
- name: Install Python Extension 📦
35-
run: python3 src/setup.py install
32+
- name: Build and Install Python Extension 🛠️
33+
run: pip3 install src/
3634

3735
- name: Run Benchmarks 📊
38-
run: python3 -m pytest tests/test_benchmark.py --verbose
36+
run: pytest tests/test_benchmark.py --verbose

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ To create a simple example how to extend Python with C++ extensions.
1111

1212
## Build and install
1313

14-
`python3 src/setup.py build` will build the `C++` extension.
15-
16-
`python3 src/setup.py install` will build and install it.
17-
18-
You can use `--user` flag to install to the Python user install directory.
14+
`pip3 install src/` will build and install `C++` extension.
1915

2016
## How to use
2117

0 commit comments

Comments
 (0)