Skip to content

Commit 75c7ed2

Browse files
committed
Package python libs
1 parent 848f103 commit 75c7ed2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2012,6 +2012,13 @@ def backend_build(
20122012

20132013
cmake_script.mkdir(os.path.join(install_dir, "backends"))
20142014
cmake_script.rmdir(os.path.join(install_dir, "backends", be))
2015+
2016+
# The python library version available for install via 'yum install python3.X-devel' does not
2017+
# match the version of python inside the RHEL base container. This means that python packages
2018+
# installed within the container will not be picked up by the python backend stub process pybind
2019+
# bindings. It must instead must be installed via pyenv. We package it here for better usability.
2020+
if target_platform() == "rhel" and be == "python":
2021+
cmake_script.cp("/usr/lib64/libpython3*", os.path.join(repo_install_dir, "backends", be))
20152022

20162023
cmake_script.cpdir(
20172024
os.path.join(repo_install_dir, "backends", be),

0 commit comments

Comments
 (0)