feat: use build by default (#2321)
* feat: use build by default Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> * fix: test/test_before_build.py:test --------- Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> Co-authored-by: mayeut <mayeut@users.noreply.github.com>
This commit is contained in:
co-authored by
mayeut
parent
21888b531f
commit
be2a707315
@@ -44,6 +44,10 @@ def test(tmp_path):
|
||||
"""python -c "import sys; open('{project}/pythonversion_bb.txt', 'w').write(sys.version)" && """
|
||||
f'''python -c "import sys; open('{{project}}/pythonprefix_bb.txt', 'w').write({SYS_PREFIX})"'''
|
||||
)
|
||||
frontend = "build"
|
||||
if utils.platform != "pyodide":
|
||||
before_build = f"python -m pip install setuptools && {before_build}"
|
||||
frontend = f"{frontend};args: --no-isolation"
|
||||
|
||||
# build the wheels
|
||||
actual_wheels = utils.cibuildwheel_run(
|
||||
@@ -52,6 +56,7 @@ def test(tmp_path):
|
||||
# write python version information to a temporary file, this is
|
||||
# checked in setup.py
|
||||
"CIBW_BEFORE_BUILD": before_build,
|
||||
"CIBW_BUILD_FRONTEND": frontend,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user