Relocate local and manylinux under a build command

This commit is contained in:
Valentin Niess
2020-04-01 00:47:41 +02:00
parent 7cdb1fb646
commit 83ee9e5f0c
7 changed files with 37 additions and 24 deletions

View File

@@ -2,8 +2,8 @@ import glob
import os
import shutil
from ..appimage import build_appimage, relocate_python
from ..utils.tmp import TemporaryDirectory
from ...appimage import build_appimage, relocate_python
from ...utils.tmp import TemporaryDirectory
__all__ = ['execute']

View File

@@ -4,10 +4,10 @@ import platform
import shutil
import sys
from ..appimage import build_appimage, relocate_python
from ..utils.docker import docker_run
from ..utils.fs import copy_tree
from ..utils.tmp import TemporaryDirectory
from ...appimage import build_appimage, relocate_python
from ...utils.docker import docker_run
from ...utils.fs import copy_tree
from ...utils.tmp import TemporaryDirectory
__all__ = ['execute']
@@ -41,7 +41,7 @@ def execute(tag, abi, contained=False):
python = '/opt/python/' + abi + '/bin/python'
pwd = os.getcwd()
dirname = os.path.abspath(os.path.dirname(__file__) + '/..')
dirname = os.path.abspath(os.path.dirname(__file__) + '/../..')
with TemporaryDirectory() as tmpdir:
copy_tree(dirname, 'python_appimage')