Skip to content

Commit 5f1c4be

Browse files
committed
Package python libs
1 parent 00d4f7e commit 5f1c4be

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
@@ -2014,6 +2014,13 @@ def backend_build(
20142014

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

20182025
cmake_script.cpdir(
20192026
os.path.join(repo_install_dir, "backends", be),

0 commit comments

Comments
 (0)