Skip to content

pybind: support RHEL8, whose default python is python 3.6.8 - #56544

Merged
tchaikov merged 1 commit into
ceph:mainfrom
baum:fix_f68248944815acbf5fb08ef66f36da6d5baef824
Mar 30, 2024
Merged

tchaikov merged 1 commit into
ceph:mainfrom
baum:fix_f68248944815acbf5fb08ef66f36da6d5baef824

Conversation

@baum

@baum baum commented Mar 28, 2024 •

Copy link
Copy Markdown
Contributor

pybind: support RHEL8, whose default python is python 3.6.8

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

@baum
baum requested a review from a team as a code owner March 28, 2024 07:27
@github-actions github-actions Bot added cephfs Ceph File System pybind rbd labels Mar 28, 2024
@baum
baum requested a review from tchaikov March 28, 2024 07:28
@baum baum mentioned this pull request Mar 28, 2024
4 of 14 tasks
@baum
baum requested a review from leonid-s-usov March 28, 2024 07:42
Comment thread src/pybind/cephfs/setup.py Resolved
@baum
baum force-pushed the fix_f68248944815acbf5fb08ef66f36da6d5baef824 branch 3 times, most recently from b654d2b to ea36b1c Compare March 28, 2024 11:21
@baum baum changed the title pybind: fix syntax error, orig commit f6824894 pybind: support RHEL8, whose default python is python 3.6.8, orig commit f6824894 Mar 28, 2024
@baum
baum force-pushed the fix_f68248944815acbf5fb08ef66f36da6d5baef824 branch 2 times, most recently from c2a30fb to 429733f Compare March 28, 2024 11:44

@tchaikov tchaikov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. but could shorten the title a little bit. like

pybind: use syntax supported by python3.6

<put more details here>

Refs f682489448

@leonid-s-usov

Copy link
Copy Markdown
Contributor

Thanks, Alex!

@idryomov

Copy link
Copy Markdown
Contributor

jenkins test api

@idryomov

Copy link
Copy Markdown
Contributor

@baum Instead of ", orig commit f682489" in the commit title, it would be better to add

Fixes: f68248944815acbf5fb08ef66f36da6d5baef824

before the Signed-off-by line as documented in https://github.com/ceph/ceph/blob/main/SubmittingPatches.rst#fixes-lines.

@idryomov idryomov changed the title pybind: support RHEL8, whose default python is python 3.6.8, orig commit f6824894 pybind: support RHEL8, whose default python is python 3.6.8 Mar 28, 2024
Fixes: f682489

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 <[email protected]>
@baum
baum force-pushed the fix_f68248944815acbf5fb08ef66f36da6d5baef824 branch from 429733f to fd5488e Compare March 29, 2024 16:06

@tchaikov tchaikov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@tchaikov

Copy link
Copy Markdown
Contributor

@tchaikov tchaikov self-assigned this Mar 30, 2024
@tchaikov
tchaikov merged commit 80374da into ceph:main Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cephfs Ceph File System pybind rbd

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants