Skip to content

Commit 5b190ef

Browse files
author
Oto Šťáva
committed
manager: move build.py to build_c_extensions.py
This fixes a problem on some systems, where the `build.py` file conflicts with the `build` module required by Poetry. See <python-poetry/poetry#7576>.
1 parent 20853d8 commit 5b190ef

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
File renamed without changes.

Diff for: manager/pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ authors = [
1010
# See currently open issue about building C extensions here:
1111
# https://github.com/python-poetry/poetry/issues/2740
1212
[tool.poetry.build]
13-
script = "build.py"
13+
script = "build_c_extensions.py"
1414
generate-setup-file = true
1515

1616
[tool.poetry.dependencies]
@@ -64,7 +64,7 @@ run-debug = { cmd = "scripts/run-debug", help = "Run the manager under debugger"
6464
docs = { cmd = "scripts/docs", help = "Create HTML documentation" }
6565
test = { shell = "env PYTHONPATH=. pytest --junitxml=unit.junit.xml --cov=knot_resolver_manager --show-capture=all tests/unit/", help = "Run tests" }
6666
check = { cmd = "scripts/codecheck", help = "Run static code analysis" }
67-
format = { shell = "black knot_resolver_manager/ tests/ scripts/ build.py; isort -rc .", help = "Run code formatter" }
67+
format = { shell = "black knot_resolver_manager/ tests/ scripts/ build_c_extensions.py; isort -rc .", help = "Run code formatter" }
6868
fixdeps = { shell = "poetry install; npm install; npm update", help = "Install/update dependencies according to configuration files"}
6969
commit = { shell = "scripts/commit", help = "Invoke every single check before commiting" }
7070
container = { cmd = "scripts/container.py", help = "Manage containers" }

Diff for: manager/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
'entry_points': entry_points,
4747
'python_requires': '>=3.7,<4.0',
4848
}
49-
from build import *
49+
from build_c_extensions import *
5050
build(setup_kwargs)
5151

5252
setup(**setup_kwargs)

0 commit comments

Comments
 (0)