actions.py: make compact.

This commit is contained in:
4fury-c3440d8
2022-11-14 05:41:21 +03:00
parent f1abaf83bb
commit 569666fea7
2 changed files with 6 additions and 4 deletions
@@ -4,12 +4,13 @@
# Licensed under the GNU General Public License, version 3.
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
from pisi.actionsapi import pythonmodules, shelltools, get
from pisi.actionsapi import pythonmodules as py3, shelltools, get
t = "dist/importlib_metadata-5.0.0-py3-none-any.whl"
shelltools.export("SETUPTOOLS_SCM_PRETEND_VERSION", "5.0.0")
def build():
pythonmodules.run("-m build", pyVer = '3')
py3.run("-m build", pyVer = '3')
def install():
pythonmodules.run("-m installer -d %s dist/importlib_metadata-5.0.0-py3-none-any.whl" % get.installDIR(), pyVer = '3')
py3.run("-m installer -d %s %s" % (get.installDIR(), t), pyVer = '3')