]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
win32_deps_build: avoid pip 50916/head
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 6 Apr 2023 11:05:47 +0000 (11:05 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Tue, 18 Apr 2023 09:55:52 +0000 (09:55 +0000)
commit041618ea9b9b09b8dcf00170417b246eaaabce8b
tree0982488845340f30e08957f6f2dfe4d5d2f696f6
parent898e092461208b75b3e55b06e7cc42597ee0df0b
win32_deps_build: avoid pip

We're currently installing cython with pip when using Ubuntu
to cross compile Ceph for Windows. This can fail with recent
Python versions if attempting to use the global env:

  error: externally-managed-environment

  × This environment is externally managed
  ╰─> To install Python packages system-wide, try apt install
      python3-xyz, where xyz is the package you are trying to
      install.

Cython isn't really needed by the Windows build so we can go
ahead and drop it. We were hoping to use the Python bindings
on Windows, however Python extensions can't be cross compiled.

We're no longer using pip either, so we're dropping the dependency.
g++ was getting installed as a pip dependency, so we'll have to
include that instead. Note that g++ is used when building the boost
b2 tool.

While at it, we'll also ensure that git is installed.

Fixes: https://tracker.ceph.com/issues/59354
Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
win32_deps_build.sh