diff options
| author | Tim D. Smith | 2014-10-29 22:58:05 -0700 |
|---|---|---|
| committer | Tim D. Smith | 2014-11-02 07:39:08 -0800 |
| commit | 749450137ce50f7fca38335575da45ba83138ce1 (patch) | |
| tree | 9025bdbf6a43a4c07936dd5c8539929600a610e0 /Library | |
| parent | 745e4aee29057c3c737f42e76bfb4abd64b90091 (diff) | |
| download | homebrew-749450137ce50f7fca38335575da45ba83138ce1.tar.bz2 | |
pypy: build cffi extensions in lib_pypy
Fixes a problem reported on IRC where these modules can't be imported by
a different user than the user that installed Homebrew because building
the cffi extensions writes files to the Cellar. Pypy's packaging script
normally generates these but it's not invoked by Homebrew.
Closes #33725.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/pypy.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/pypy.rb b/Library/Formula/pypy.rb index 3ab32160b..8a04d7e12 100644 --- a/Library/Formula/pypy.rb +++ b/Library/Formula/pypy.rb @@ -60,6 +60,12 @@ class Pypy < Formula end def post_install + # Precompile cffi extensions in lib_pypy + # list from create_cffi_import_libraries in pypy/tool/release/package.py + %w[_sqlite3 _curses syslog gdbm _tkinter].each do |module_name| + quiet_system bin/"pypy", "-c", "import #{module_name}" + end + # Post-install, fix up the site-packages and install-scripts folders # so that user-installed Python software survives minor updates, such # as going from 1.7.0 to 1.7.1. |
