Skip to content

Commit 0d079e9

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 dab65a2 commit 0d079e9

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
@@ -36,6 +36,11 @@ def include_dirs(self):
3636
d.format(arch=self))
3737
for d in self.ctx.include_dirs]
3838

39+
@property
40+
def nice_arch(self):
41+
'''Returns `Arch.arch` without hyphen and in Camel Case format'''
42+
return ''.join([i.title() for i in self.arch.split('-')])
43+
3944
@property
4045
def target(self):
4146
target_data = self.command_prefix.split('-')

0 commit comments

Comments
 (0)