Skip to content

Commit c97b2d4

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

File tree

3 files changed

+9
-14
lines changed

3 files changed

+9
-14
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

requirements.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
Cython~=3.0.0
2-
pytest-benchmark~=5.0.0
3-
pytest~=8.3.0
4-
setuptools~=76.0.0
1+
Cython
2+
pytest
3+
pytest-benchmark
4+
setuptools
5+
wheel

0 commit comments

Comments
 (0)