actions.py 546 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import pythonmodules, cmaketools
  7. j = ''.join([
  8. ' -DPYBIND11_FINDPYTHON=ON',
  9. ' -DUSE_PYTHON_INCLUDE_DIR=OFF',
  10. ' -B_build -L '
  11. ])
  12. def setup():
  13. cmaketools.configure(j)
  14. def build():
  15. cmaketools.make("-C _build")
  16. pythonmodules.compile(pyVer = "3")
  17. def install():
  18. cmaketools.install("-C _build")
  19. pythonmodules.install(pyVer = "3")