mirror of
https://github.com/niess/python-appimage.git
synced 2026-03-14 04:10:15 +01:00
Relocate local and manylinux under a build command
This commit is contained in:
0
python_appimage/commands/build/__init__.py
Normal file
0
python_appimage/commands/build/__init__.py
Normal 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']
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user