Skip to content

Commit

Permalink
[email protected]: avoid shelling out to brew (#107695)
Browse files Browse the repository at this point in the history
This breaks builds inside superenv. See
- #107660
- #107662
- #107663
- #107664
- #107665
- pypa/distutils#155
- pypa/distutils#158
  • Loading branch information
carlocab authored Aug 10, 2022
1 parent e07460a commit 9c31185
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,13 @@ def post_install
include_dirs=#{include_dirs.join ":"}
library_dirs=#{library_dirs.join ":"}
EOS

# setuptools 63.2.0+ breaks when used inside superenv.
# https://github.com/pypa/distutils/pull/155
# https://github.com/pypa/distutils/issues/158
inreplace site_packages/"setuptools/_distutils/command/_framework_compat.py",
/^(\s+homebrew_prefix\s+=\s+).*/,
"\\1'#{HOMEBREW_PREFIX}'"
end

def sitecustomize
Expand Down

0 comments on commit 9c31185

Please sign in to comment.