pkgdep/debian: Install python3-dev

This package is required to install grpcio:

./scripts/pkgdep.sh --developer-tools
...
  Could not find <Python.h>. This could mean the following:
    * You're on Ubuntu and haven't run `apt-get install python3-dev`.
    * You're on RHEL/Fedora and haven't run `yum install python3-devel` or
      `dnf install python3-devel` (make sure you also have redhat-rpm-config
      installed)
    * You're on Mac OS X and the usual Python framework was somehow corrupted
      (check your environment variables or try re-installing?)
    * You're on Windows and your Python installation was somehow corrupted
      (check your environment variables or try re-installing?)

  ----------------------------------------
  ERROR: Failed building wheel for grpcio
Failed to build grpcio

Signed-off-by: Alexey Marchuk <alexeymar@nvidia.com>
Change-Id: I1a9d6154de9ab86ba8062b53ba56002e226daa94
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15751
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: <qun.wan@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
Alexey Marchuk 2022-12-01 16:53:24 +01:00 committed by Tomasz Zawadzki
parent 9d06166f5b
commit 0ab4de566b

View File

@ -1,6 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2020 Intel Corporation # Copyright (C) 2020 Intel Corporation
# Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES.
# All rights reserved. # All rights reserved.
# #
@ -14,7 +15,7 @@ if [[ $NAME == "Ubuntu" ]] && [[ $VERSION_ID_NUM -ge 2204 ]]; then
else else
apt-get install -y python apt-get install -y python
fi fi
apt-get install -y libncurses5-dev libncursesw5-dev python3-pip apt-get install -y libncurses5-dev libncursesw5-dev python3-pip python3-dev
pip3 install ninja pip3 install ninja
if ! pip3 install meson; then if ! pip3 install meson; then
# After recent updates pip3 on ubuntu1604 provides meson version which requires python >= 3.6. # After recent updates pip3 on ubuntu1604 provides meson version which requires python >= 3.6.