mirror of https://github.com/xemu-project/xemu.git
build: Skip Python install when fetching macOS deps
This commit is contained in:
parent
f0087dc054
commit
933d34ec35
|
@ -84,10 +84,17 @@ class LibInstaller:
|
|||
f'-signature "{sig_path}" "{pkg_path}"',
|
||||
shell=True, check=True)
|
||||
|
||||
def is_pkg_skipped(self, pkg_name):
|
||||
return pkg_name.startswith('python')
|
||||
|
||||
def install_pkg(self, pkg_name):
|
||||
if self.is_pkg_installed(pkg_name):
|
||||
return
|
||||
|
||||
if self.is_pkg_skipped(pkg_name):
|
||||
print(f'[*] Skipping package {pkg_name}')
|
||||
return
|
||||
|
||||
print(f'[*] Fetching {pkg_name}')
|
||||
pkg_filename, pkg_url = self.get_latest_pkg_filename_url(pkg_name)
|
||||
pkg_version = re.match(r'^[\w_]+-([\w\.\-\_\+]*?)\.' + self._darwin_target, pkg_filename).groups(1)[0]
|
||||
|
@ -109,10 +116,6 @@ class LibInstaller:
|
|||
print(f' [>] {dep}')
|
||||
dep = dep.split('-')[0]
|
||||
self._queue.append(dep)
|
||||
for dep in re.findall(r'@pkgdep (.+)', pkg_contents_file):
|
||||
print(f' [>] {dep}')
|
||||
dep = dep.split('-')[0]
|
||||
self._queue.append(dep)
|
||||
|
||||
print(f' [*] Checking tarball...')
|
||||
|
||||
|
@ -124,6 +127,7 @@ class LibInstaller:
|
|||
tb.extractall(self._extract_path, numeric_owner=True)
|
||||
|
||||
for fpath in tb.getnames():
|
||||
# FIXME: Symlinks
|
||||
extracted_path = os.path.realpath(os.path.join(self._extract_path, fpath))
|
||||
if extracted_path.endswith('.pc'):
|
||||
print(f' [*] Fixing {extracted_path}')
|
||||
|
|
Loading…
Reference in New Issue