File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -77,3 +77,15 @@ store them in setup.py by passing the ``options`` parameter to
77
77
These options will be automatically included when you run ``python
78
78
setup.py apk ``. Any options passed on the command line will override
79
79
these values.
80
+
81
+ Adding p4a arguments in setup.cfg
82
+ ---------------------------------
83
+
84
+ You can also provide p4a arguments in the setup.cfg file, as normal
85
+ for distutils. The syntax is::
86
+
87
+ [apk]
88
+
89
+ argument=value
90
+
91
+ requirements=sdl2,kivy
Original file line number Diff line number Diff line change @@ -40,10 +40,10 @@ def finalize_options(self):
40
40
41
41
setup_options = self .distribution .get_option_dict ('apk' )
42
42
for (option , (source , value )) in setup_options .items ():
43
- if source != 'setup script ' :
43
+ if source == 'command line ' :
44
44
continue
45
45
if not argv_contains ('--' + option ):
46
- if value is None :
46
+ if value in ( None , 'None' ) :
47
47
sys .argv .append ('--{}' .format (option ))
48
48
else :
49
49
sys .argv .append ('--{}={}' .format (option , value ))
@@ -77,6 +77,7 @@ def run(self):
77
77
78
78
from pythonforandroid .toolchain import main
79
79
sys .argv [1 ] = 'apk'
80
+ print ('argv is' , sys .argv )
80
81
main ()
81
82
82
83
def prepare_build_dir (self ):
You can’t perform that action at this time.
0 commit comments