actions.py 781 Bytes
Newer Older
Suleyman Poyraz's avatar
Suleyman Poyraz committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from inary.actionsapi import pythonmodules
from inary.actionsapi import inarytools
from inary.actionsapi import shelltools
from inary.actionsapi import get

WorkDir="setuptools-%s" % get.srcVERSION()

def build():
    if get.buildTYPE()=="rebuild_python":
        pythonmodules.run("bootstrap.py", pyVer="3")
        pythonmodules.compile(pyVer="3")
    else:
        pythonmodules.run("bootstrap.py")
        pythonmodules.compile()


def install():
    if get.buildTYPE()=="rebuild_python":
        pythonmodules.install(pyVer="3")
    else:
        pythonmodules.install()
    inarytools.remove("/usr/lib/*/site-packages/setuptools/*.exe")