Skip to content

Commit 3808066

Browse files
authored
Merge pull request #1614 from kivy/fix_libffi_cp
Removed argument to cp that doesn't exist on macOS
2 parents c846efd + a23fd22 commit 3808066

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pythonforandroid/recipes/libffi/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from os.path import exists, join
22
from pythonforandroid.recipe import Recipe
33
from pythonforandroid.logger import info, shprint
4-
from pythonforandroid.util import current_directory
4+
from pythonforandroid.util import current_directory, ensure_dir
55
from glob import glob
66
import sh
77

@@ -77,8 +77,10 @@ def build_arch(self, arch):
7777
with current_directory(host_build):
7878
shprint(cc, *cflags, _env=env)
7979

80-
shprint(sh.cp, '-t', self.ctx.get_libs_dir(arch.arch),
81-
join(host_build, '.libs', 'libffi.so'))
80+
ensure_dir(self.ctx.get_libs_dir(arch.arch))
81+
shprint(sh.cp,
82+
join(host_build, '.libs', 'libffi.so'),
83+
self.ctx.get_libs_dir(arch.arch))
8284

8385
def get_include_dirs(self, arch):
8486
return [join(self.get_build_dir(arch.arch), 'include')]

0 commit comments

Comments
 (0)