Skip to content

Commit 9c31185

Browse files
authored
[email protected]: avoid shelling out to brew (#107695)
This breaks builds inside superenv. See - #107660 - #107662 - #107663 - #107664 - #107665 - pypa/distutils#155 - pypa/distutils#158
1 parent e07460a commit 9c31185

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Formula/[email protected]

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,13 @@ def post_install
372372
include_dirs=#{include_dirs.join ":"}
373373
library_dirs=#{library_dirs.join ":"}
374374
EOS
375+
376+
# setuptools 63.2.0+ breaks when used inside superenv.
377+
# https://github.com/pypa/distutils/pull/155
378+
# https://github.com/pypa/distutils/issues/158
379+
inreplace site_packages/"setuptools/_distutils/command/_framework_compat.py",
380+
/^(\s+homebrew_prefix\s+=\s+).*/,
381+
"\\1'#{HOMEBREW_PREFIX}'"
375382
end
376383

377384
def sitecustomize

0 commit comments

Comments
 (0)