Skip to content

Commit c2531c7

Browse files
committed
Made setup.py work
1 parent c0d8587 commit c2531c7

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

pythonforandroid/toolchain.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
except ImportError:
3030
from urllib import FancyURLopener
3131

32+
import argparse
33+
3234
import requests
3335
from appdirs import user_data_dir
3436

@@ -2063,8 +2065,5 @@ def list_dists(self, args):
20632065

20642066

20652067
if __name__ == "__main__":
2066-
import argparse
2067-
2068-
20692068

20702069
ToolchainCL()

setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,10 @@
1010
license='MIT',
1111
packages=['pythonforandroid'],
1212
install_requires=['appdirs', 'colorama', 'sh'],
13+
entry_points={
14+
'console_scripts': [
15+
'python-for-android = pythonforandroid.toolchain:ToolchainCL'
16+
],
17+
}
1318
)
1419

0 commit comments

Comments
 (0)