浏览代码

vagrant: add libffi-dev, required to build python

Thomas Waldmann 4 年之前
父节点
当前提交
b8e9f85de2
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Vagrantfile

+ 3 - 3
Vagrantfile

@@ -21,7 +21,7 @@ def packages_debianoid(user)
     apt-get install -y fakeroot build-essential git
     apt-get install -y fakeroot build-essential git
     apt-get install -y python3-dev python3-setuptools
     apt-get install -y python3-dev python3-setuptools
     # for building python:
     # for building python:
-    apt-get install -y zlib1g-dev libbz2-dev libncurses5-dev libreadline-dev liblzma-dev libsqlite3-dev
+    apt-get install -y zlib1g-dev libbz2-dev libncurses5-dev libreadline-dev liblzma-dev libsqlite3-dev libffi-dev
     # this way it works on older dists (like ubuntu 12.04) also:
     # this way it works on older dists (like ubuntu 12.04) also:
     # for python 3.2 on ubuntu 12.04 we need pip<8 and virtualenv<14 as
     # for python 3.2 on ubuntu 12.04 we need pip<8 and virtualenv<14 as
     # newer versions are not compatible with py 3.2 any more.
     # newer versions are not compatible with py 3.2 any more.
@@ -49,7 +49,7 @@ def packages_redhatted
     # needed to compile msgpack-python (otherwise it will use slow fallback code):
     # needed to compile msgpack-python (otherwise it will use slow fallback code):
     yum install -y gcc-c++
     yum install -y gcc-c++
     # for building python:
     # for building python:
-    yum install -y zlib-devel bzip2-devel ncurses-devel readline-devel xz xz-devel sqlite-devel
+    yum install -y zlib-devel bzip2-devel ncurses-devel readline-devel xz xz-devel sqlite-devel libffi-devel
     #yum install -y python-pip
     #yum install -y python-pip
     #pip install virtualenv
     #pip install virtualenv
   EOF
   EOF
@@ -83,7 +83,7 @@ def packages_freebsd
     pkg install -y openssl liblz4 fusefs-libs pkgconf
     pkg install -y openssl liblz4 fusefs-libs pkgconf
     pkg install -y git bash
     pkg install -y git bash
     # for building python:
     # for building python:
-    pkg install -y sqlite3
+    pkg install -y sqlite3 libffi
     # make bash default / work:
     # make bash default / work:
     chsh -s bash vagrant
     chsh -s bash vagrant
     mount -t fdescfs fdesc /dev/fd
     mount -t fdescfs fdesc /dev/fd