]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind: use syntax supported by python3.6 56544/head
authorAlexander Indenbaum <aindenba@redhat.com>
Thu, 28 Mar 2024 07:20:11 +0000 (07:20 +0000)
committerAlexander Indenbaum <aindenba@redhat.com>
Fri, 29 Mar 2024 16:04:21 +0000 (16:04 +0000)
commitfd5488ed2c64726fb36321a836cdff4de92454bd
tree2ec339e6f92b3a876f85d905a9eae18ccb6ac996
parent87a931c9a53d2b5501a5486e08586a44e236f949
pybind: use syntax supported by python3.6

Fixes: f68248944815acbf5fb08ef66f36da6d5baef824
It seems the shaman CentOS8 builders, which serve as the base for container images, aren't current with the ":=" syntax. Amend to support RHEL8, whose default python is python 3.6.8.

Error example from https://shaman.ceph.com/builds/ceph/ceph-nvmeof-mon/27188b78bdbaa3c33de518b8514906de629e774a/default/388913/

  File "/home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/19.0.0-2505-g27188b78/rpm/el8/BUILD/ceph-19.0.0-2505-g27188b78/src/pybind/cephfs/setup.py", line 120
    if ldflags := os.environ.get('LDFLAGS'):
                ^
SyntaxError: invalid syntax

Signed-off-by: Alexander Indenbaum <aindenba@redhat.com>
src/pybind/cephfs/setup.py
src/pybind/rados/setup.py
src/pybind/rbd/setup.py
src/pybind/rgw/setup.py