Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into evan-goode/bootc-…
Browse files Browse the repository at this point in the history
…stdin-stdout
  • Loading branch information
evan-goode committed Oct 1, 2024
2 parents 78add1e + b4e6e0d commit 928f90d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ ELSE ()
MESSAGE (FATAL_ERROR "Invalid PYTHON_DESIRED value: " ${PYTHON_DESIRED})
ENDIF()

EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from sysconfig import get_path; stdout.write(get_path('purelib'))" OUTPUT_VARIABLE PYTHON_INSTALL_DIR)
IF (NOT PYTHON_INSTALL_DIR)
EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from sysconfig import get_path; stdout.write(get_path('purelib'))" OUTPUT_VARIABLE PYTHON_INSTALL_DIR)
ENDIF()
MESSAGE(STATUS "Python install dir is ${PYTHON_INSTALL_DIR}")

SET (SYSCONFDIR /etc)
Expand Down
2 changes: 2 additions & 0 deletions plugins/copr.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,8 @@ def _guess_chroot(self):
chroot = ("opensuse-tumbleweed-{}".format(distarch))
else:
chroot = ("opensuse-leap-{0}-{1}".format(dist[1], distarch))
elif "Amazon Linux" in dist[0]:
chroot = "amazonlinux-{}-{}".format(dist[1], distarch if distarch else "x86_64")
else:
chroot = ("epel-{}-{}".format(dist[1].split(".", 1)[0], distarch if distarch else "x86_64"))
return chroot
Expand Down

0 comments on commit 928f90d

Please sign in to comment.