aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/pypy3.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/pypy3.rb b/Library/Formula/pypy3.rb
index a4fa14052..a0321d40b 100644
--- a/Library/Formula/pypy3.rb
+++ b/Library/Formula/pypy3.rb
@@ -58,6 +58,12 @@ class Pypy3 < 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/"pypy3", "-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.