File tree Expand file tree Collapse file tree
StabilityMatrix.Core/Models/Packages Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -239,8 +239,12 @@ await PyInstallationManager.GetInstallationAsync(pythonVersion.Value).ConfigureA
239239 // setuptools 82+ removed pkg_resources, breaking source builds that import it.
240240 var buildConstraintsPath = Path . Combine ( installedPackagePath , venvName , "uv-build-constraints.txt" ) ;
241241 await File . WriteAllTextAsync ( buildConstraintsPath , "setuptools<82\n " ) . ConfigureAwait ( false ) ;
242+ // Use relative path because uv splits UV_BUILD_CONSTRAINT on spaces (it's a list-type env var),
243+ // which breaks when the absolute path contains spaces. The working directory is installedPackagePath,
244+ // so the relative path resolves correctly.
245+ var relativeBuildConstraintsPath = Path . Combine ( venvName , "uv-build-constraints.txt" ) ;
242246 venvRunner . UpdateEnvironmentVariables ( env =>
243- env . SetItem ( "UV_BUILD_CONSTRAINT" , buildConstraintsPath )
247+ env . SetItem ( "UV_BUILD_CONSTRAINT" , relativeBuildConstraintsPath )
244248 ) ;
245249
246250 // ensure pip is installed
You can’t perform that action at this time.
0 commit comments