FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-for-android/setup.py at master · BetaMatrix/python-for-android · GitHub
BetaMatrix
/
python-for-android
Public
forked from
kivy/python-for-android
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-for-android
/
setup.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
80 lines (72 loc) · 3.06 KB
Breadcrumbs
python-for-android
/
setup.py
Copy path
File metadata and controls
80 lines (72 loc) · 3.06 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
from
setuptools
import
setup
,
find_packages
from
os
import
walk
from
os
.
path
import
join
,
dirname
,
sep
import
os
import
glob
# NOTE: All package data should also be set in MANIFEST.in
packages
=
find_packages
()
package_data
=
{
''
: [
'*.tmpl'
,
'*.patch'
, ], }
data_files
=
[]
# By specifying every file manually, package_data will be able to
# include them in binary distributions. Note that we have to add
# everything as a 'pythonforandroid' rule, using '' apparently doesn't
# work.
def
recursively_include
(
results
,
directory
,
patterns
):
for
root
,
subfolders
,
files
in
walk
(
directory
):
for
fn
in
files
:
if
not
any
([
glob
.
fnmatch
.
fnmatch
(
fn
,
pattern
)
for
pattern
in
patterns
]):
continue
filename
=
join
(
root
,
fn
)
directory
=
'pythonforandroid'
if
directory
not
in
results
:
results
[
directory
]
=
[]
results
[
directory
].
append
(
join
(
*
filename
.
split
(
sep
)[
1
:]))
recursively_include
(
package_data
,
'pythonforandroid/recipes'
,
[
'*.patch'
,
'Setup*'
,
'*.pyx'
,
'*.py'
,
'*.c'
,
'*.h'
,
'*.mk'
,
'*.jam'
, ])
recursively_include
(
package_data
,
'pythonforandroid/bootstraps'
,
[
'*.properties'
,
'*.xml'
,
'*.java'
,
'*.tmpl'
,
'*.txt'
,
'*.png'
,
'*.mk'
,
'*.c'
,
'*.h'
,
'*.py'
,
'*.sh'
,
'*.jpg'
,
'*.aidl'
, ])
recursively_include
(
package_data
,
'pythonforandroid/bootstraps'
,
[
'sdl-config'
, ])
recursively_include
(
package_data
,
'pythonforandroid/bootstraps/webview'
,
[
'*.html'
, ])
recursively_include
(
package_data
,
'pythonforandroid'
,
[
'liblink'
,
'biglink'
,
'liblink.sh'
])
setup
(
name
=
'python-for-android'
,
version
=
'0.4'
,
description
=
'Android APK packager for Python scripts and apps'
,
author
=
'The Kivy team'
,
author_email
=
'kivy-dev@googlegroups.com'
,
url
=
'https://github.com/kivy/python-for-android'
,
license
=
'MIT'
,
install_requires
=
[
'appdirs'
,
'colorama>=0.3.3'
,
'sh>=1.10'
,
'jinja2'
,
'argparse'
,
'six'
],
entry_points
=
{
'console_scripts'
: [
'python-for-android = pythonforandroid.toolchain:main'
,
'p4a = pythonforandroid.toolchain:main'
,
],
'distutils.commands'
: [
'bdist_apk = pythonforandroid.bdist_apk:BdistAPK'
,
],
},
classifiers
=
[
'Development Status :: 4 - Beta'
,
'Intended Audience :: Developers'
,
'License :: OSI Approved :: MIT License'
,
'Operating System :: Microsoft :: Windows'
,
'Operating System :: OS Independent'
,
'Operating System :: POSIX :: Linux'
,
'Operating System :: MacOS :: MacOS X'
,
'Operating System :: Android'
,
'Programming Language :: C'
,
'Programming Language :: Python :: 2'
,
'Programming Language :: Python :: 3'
,
'Topic :: Software Development'
,
'Topic :: Utilities'
,
],
packages
=
packages
,
package_data
=
package_data
,
)
Back
|
FazBrowse Home
|
New Git URL