Skip to content

Commit bfbcd36

Browse files
committed
setup: move away from legacy build backend
AiiDA was still using the `setuptools.build_meta:__legacy__` build backend. This can lead to issues when using a *system* version of setuptools < 0.40.8, see [1]. I've tested that the `reentry_register` hook still works with the new build backend. [1] pypa/setuptools#1694 (comment)
1 parent 976876f commit bfbcd36

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
requires = ["setuptools>=40.8.0", "wheel", "reentry~=1.3", "fastentrypoints~=0.12"]
3-
build-backend = "setuptools.build_meta:__legacy__"
3+
build-backend = "setuptools.build_meta"
44

55
[tool.pylint.master]
66
load-plugins = "pylint_django"

utils/dependency_management.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def update_pyproject_toml():
191191
'requires': ['setuptools>=40.8.0', 'wheel',
192192
str(reentry_requirement), 'fastentrypoints~=0.12'],
193193
'build-backend':
194-
'setuptools.build_meta:__legacy__',
194+
'setuptools.build_meta',
195195
})
196196

197197
# write the new file

0 commit comments

Comments
 (0)