# -*- coding: utf-8 -*-## Licensed under the GNU General Public License, version 3.# See the file http://www.gnu.org/licenses/gpl.txtfrominary.actionsapiimportpythonmodulesfrominary.actionsapiimportinarytoolsfrominary.actionsapiimportshelltoolsfrominary.actionsapiimportgetWorkDir="setuptools-%s"%get.srcVERSION()defbuild():ifget.buildTYPE()=="rebuild_python":pythonmodules.run("bootstrap.py",pyVer="3")pythonmodules.compile(pyVer="3")else:pythonmodules.run("bootstrap.py")pythonmodules.compile()definstall():ifget.buildTYPE()=="rebuild_python":pythonmodules.install(pyVer="3")else:pythonmodules.install()inarytools.remove("/usr/lib/*/site-packages/setuptools/*.exe")