Skip to content

Commit 1b3fff2

Browse files
rtibblesclaude
andcommitted
Pin build<1.4.3 to work around PYTHONPATH stripping regression
build 1.4.3 (pypa/build#1024) strips PYTHONPATH from isolated build subprocesses but not from the pip install step that populates them. When install_hostpython_prerequisites puts packages (including setuptools) on PYTHONPATH via --target, pip sees setuptools as "already satisfied" and skips installing it into the isolated venv. The build backend subprocess then fails with: BackendUnavailable: Cannot import 'setuptools.build_meta' See pypa/build#1037. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 632047c commit 1b3fff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonforandroid/recipe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1266,7 +1266,7 @@ def install_wheel(self, arch, built_wheels):
12661266

12671267
def build_arch(self, arch):
12681268
self.install_hostpython_prerequisites(
1269-
packages=["build[virtualenv]", "pip"] + self.hostpython_prerequisites
1269+
packages=["build[virtualenv]<1.4.3", "pip"] + self.hostpython_prerequisites
12701270
)
12711271
build_dir = self.get_build_dir(arch.arch)
12721272
env = self.get_recipe_env(arch, with_flags_in_cc=True)

0 commit comments

Comments
 (0)