actions.py 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/licenses/gpl.txt
  5. from pisi.actionsapi import get
  6. from pisi.actionsapi import pisitools
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import pythonmodules
  9. WorkDir="setuptools-%s" % get.srcVERSION()
  10. #def setup():
  11. #shelltools.makedirs("%s/setuptools-54.2.0/build/scripts-3.8" % get.workDIR())
  12. def build():
  13. pythonmodules.compile(pyVer="3")
  14. def install():
  15. pythonmodules.install(pyVer="3")
  16. pisitools.removeDir("/usr/lib/python3.11/site-packages/setuptools/_vendor")
  17. pisitools.removeDir("/usr/lib/python3.11/site-packages/pkg_resources/_vendor")
  18. pisitools.removeDir("/usr/lib/python3.11/site-packages/setuptools/extern")
  19. pisitools.removeDir("/usr/lib/python3.11/site-packages/pkg_resources/extern")
  20. shelltools.system("find %s -name '*.py' -exec sed \
  21. -e 's:from \w*[.]\+extern ::' -e 's:\w*[.]\+extern[.]::' \
  22. -i {} + || die" % get.installDIR())