Skip to content

Commit a41c2e6

Browse files
authored
update build rules to work with latest python build practices (#3134)
* update build rules to work with latest python build practices * try this * add cmake
1 parent 7433a9c commit a41c2e6

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.github/workflows/build_python.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ jobs:
4444
- name: Build
4545
run: |
4646
pip3 install cmake==3.24.0
47-
python setup.py build
48-
python setup.py install --user
47+
pip3 install .
4948
- name: Test
5049
run: python -m pytest --ignore docs --ignore dlib
5150

@@ -58,8 +57,7 @@ jobs:
5857
run: pip install pytest numpy
5958
- name: Build
6059
run: |
61-
python setup.py build
62-
python setup.py install --user
60+
pip install .
6361
- name: Test
6462
run: python -m pytest --ignore docs --ignore dlib
6563

@@ -73,8 +71,7 @@ jobs:
7371
# run: pip3 install pytest numpy
7472
# - name: Build
7573
# run: |
76-
# python3 setup.py build
77-
# python3 setup.py install --user
74+
# pip install .
7875
# - name: Test
7976
# run: python3 -m pytest --ignore docs --ignore dlib
8077

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[build-system]
2-
requires = ["setuptools", "wheel", "packaging"]
2+
requires = ["setuptools", "wheel", "packaging", "cmake"]
33
build-backend = "setuptools.build_meta"
44

0 commit comments

Comments
 (0)