Skip to content

Commit ba34ce6

Browse files
committed
[dist] Add cls property Arch.nice_arch
So we can get arch name without hyphen and with CamelCase. We will use this to add an arch suffix to our dists.
1 parent b7a2520 commit ba34ce6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pythonforandroid/archs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ def include_dirs(self):
6666
d.format(arch=self))
6767
for d in self.ctx.include_dirs]
6868

69+
@property
70+
def nice_arch(self):
71+
'''Returns `Arch.arch` without hyphen and in Camel Case format'''
72+
return ''.join([i.title() for i in self.arch.split('-')])
73+
6974
@property
7075
def target(self):
7176
# As of NDK r19, the toolchains installed by default with the

0 commit comments

Comments
 (0)