Skip to content

Commit 80374da

Browse files
authored
Merge pull request ceph#56544 from baum/fix_f68248944815acbf5fb08ef66f36da6d5baef824
pybind: support RHEL8, whose default python is python 3.6.8 Reviewed-by: Ilya Dryomov <[email protected]> Reviewed-by: Leonid Usov <[email protected]> Reviewed-by: Kefu Chai <[email protected]>
2 parents 8d7564a + fd5488e commit 80374da

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

src/pybind/cephfs/setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ def check_sanity():
117117
extra_preargs=['-iquote{path}'.format(path=os.path.join(CEPH_SRC_DIR, 'include'))]
118118
)
119119

120-
if ldflags := os.environ.get('LDFLAGS'):
120+
ldflags = os.environ.get('LDFLAGS')
121+
if ldflags:
121122
extra_postargs = ldflags.split()
122123
else:
123124
extra_postargs = None

src/pybind/rados/setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ def check_sanity():
112112
sources=[tmp_file],
113113
output_dir=tmp_dir
114114
)
115-
if ldflags := os.environ.get('LDFLAGS'):
115+
ldflags = os.environ.get('LDFLAGS')
116+
if ldflags:
116117
extra_postargs = ldflags.split()
117118
else:
118119
extra_postargs = None

src/pybind/rbd/setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ def check_sanity():
116116
output_dir=tmp_dir
117117
)
118118

119-
if ldflags := os.environ.get('LDFLAGS'):
119+
ldflags = os.environ.get('LDFLAGS')
120+
if ldflags:
120121
extra_postargs = ldflags.split()
121122
else:
122123
extra_postargs = None

src/pybind/rgw/setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ def check_sanity():
116116
output_dir=tmp_dir,
117117
)
118118

119-
if ldflags := os.environ.get('LDFLAGS'):
119+
ldflags = os.environ.get('LDFLAGS')
120+
if ldflags:
120121
extra_postargs = ldflags.split()
121122
else:
122123
extra_postargs = None

0 commit comments

Comments
 (0)