Skip to content

Add distutils command for 'python setup.py apk'#764

Merged
inclement merged 14 commits into
kivy:masterfrom
inclement:apk_distutils_command
Jul 5, 2016
Merged

Add distutils command for 'python setup.py apk'#764
inclement merged 14 commits into
kivy:masterfrom
inclement:apk_distutils_command

Conversation

@inclement

@inclement inclement commented Jun 5, 2016

Copy link
Copy Markdown
Member

Not for merging yet (needs doc + cleanup), but basically works.

This adds a distutils command so that you can run python setup.py apk to call p4a. It will use the normal setuptools information (name, version, package_data) unless otherwise specified, and you can also use all the normal p4a arguments.

This works by papering over all the normal distutils behaviour (e.g. manually adding all the user arguments to the allowed list, since we want distutils to ignore them and let p4a handle it). I don't know if this could be done better.

I took the approach of using a normal distutils Command, but we could also provide our own setup() that would take extra arguments. This would be neater than the current register_args, but I didn't do it initially because I haven't seen other packages do this, and it's a little awkward.

(Edit: cx_freeze does provide its own setup, but I don't think we need to)

@inclement inclement force-pushed the apk_distutils_command branch from 80fbf20 to ad69375 Compare June 19, 2016 21:53
@inclement inclement force-pushed the apk_distutils_command branch from ad69375 to 16597db Compare July 2, 2016 21:48
@inclement inclement force-pushed the apk_distutils_command branch from 0bf122a to bf1919d Compare July 3, 2016 22:31
@inclement

Copy link
Copy Markdown
Member Author

This is now probably ready to merge, testing or comments welcome.

@inclement inclement merged commit fe5ff4e into kivy:master Jul 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant