]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
win32_deps_build: avoid pip 51129/head
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 6 Apr 2023 11:05:47 +0000 (11:05 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 26 May 2023 06:48:56 +0000 (06:48 +0000)
commit2057ff06738ccebfcb23f37f3a91cafd44d5bd13
treec08a67ade6b8cc3d0be896be5a2094508298b496
parent9268e42ffe865164ff6e73c3a2017a9a81ea3393
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>
(cherry picked from commit 041618ea9b9b09b8dcf00170417b246eaaabce8b)

Conflicts:
win32_deps_build.sh
        -> commit 4954fe1 ("win32: add rhel option") not in quincy

[1] https://github.com/ceph/ceph/commit/4954fe19e5594ca5cac1d639fcfa49941abbbfa9
win32_deps_build.sh