Skip to content

Commit 5dccf9f

Browse files
committed
Add property build_platform
To make easier for us to remove the hardcoded entries that we have in our build system
1 parent bf214b3 commit 5dccf9f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pythonforandroid/util.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import contextlib
22
from os.path import exists, join
3-
from os import getcwd, chdir, makedirs, walk
3+
from os import getcwd, chdir, makedirs, walk, uname
44
import io
55
import json
66
import shutil
@@ -24,6 +24,13 @@ class WgetDownloader(FancyURLopener):
2424
urlretrieve = WgetDownloader().retrieve
2525

2626

27+
build_platform = '{system}-{machine}'.format(
28+
system=uname()[0], machine=uname()[-1]).lower()
29+
"""the build platform in the format `system-machine`. We use
30+
this string to define the right build system when compiling some recipes or
31+
to get the right path for clang compiler"""
32+
33+
2734
@contextlib.contextmanager
2835
def current_directory(new_dir):
2936
cur_dir = getcwd()

0 commit comments

Comments
 (0)