actions.py 772 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from inary.actionsapi import autotools
  7. from inary.actionsapi import inarytools
  8. from inary.actionsapi import pythonmodules
  9. from inary.actionsapi import shelltools
  10. from inary.actionsapi import get
  11. def build():
  12. if get.buildTYPE()=="rebuild_python":
  13. shelltools.export("PYTHON", "/usr/bin/python3.7")
  14. pythonmodules.compile(pyVer="3")
  15. else:
  16. shelltools.export("PYTHON", "/usr/bin/python2.7")
  17. pythonmodules.compile(pyVer="2")
  18. def install():
  19. if get.buildTYPE()=="rebuild_python":
  20. pythonmodules.install(pyVer="3")
  21. else:
  22. pythonmodules.install(pyVer="2")