Skip to content

Commit

Permalink
buildsystem: install python files into prefix on Linux
Browse files Browse the repository at this point in the history
Prequisite for Linux Flatpak support without ugly hacks.

Signed-off-by: David Heidelberg <[email protected]>
  • Loading branch information
okias committed Jan 1, 2021
1 parent 4c1ccf5 commit fea8b75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildsystem/HandlePythonOptions.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2015-2020 the openage authors. See copying.md for legal info.
# Copyright 2015-2021 the openage authors. See copying.md for legal info.

# finds the python interpreter, install destination and extension flags.

Expand Down Expand Up @@ -45,7 +45,7 @@ if(NOT CMAKE_PY_INSTALL_PREFIX)
if(MSVC)
set(CMAKE_PY_INSTALL_PREFIX "python")
else()
py_exec("from distutils.sysconfig import get_python_lib; print(get_python_lib())" PREFIX)
py_exec("from distutils.sysconfig import get_python_lib; print(get_python_lib(prefix='${CMAKE_INSTALL_PREFIX}'))" PREFIX)
set(CMAKE_PY_INSTALL_PREFIX "${PREFIX}")
endif()
endif()
1 change: 1 addition & 0 deletions copying.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ _the openage authors_ are:
| Martin Matějek | mmtj | martin dawt matejek à gmx dawt com |
| Tobias Feldballe | Namabilis | tobias à osandweb dawt dk |
| Ayxan Haqverdili | Ayxan13 | aykhanhagverdili à gmail dawt com |
| David Heidelberg | okias | david à ixit dawt cz |

If you're a first-time committer, add yourself to the above list. This is not
just for legal reasons, but also to keep an overview of all those nicknames.
Expand Down

0 comments on commit fea8b75

Please sign in to comment.