Skip to content

Commit a4ffd1c

Browse files
committed
Initial commit (add python submodule)
0 parents  commit a4ffd1c

File tree

4 files changed

+43
-0
lines changed

4 files changed

+43
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
__pycache__/
2+

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "python"]
2+
path = python
3+
url = https://github.com/python/cpython

build.py

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import subprocess
2+
import sys
3+
import os
4+
5+
def run(*command):
6+
print(command)
7+
try:
8+
result = subprocess.run(command)
9+
except OSError:
10+
return 127, []
11+
return result.returncode, result.stdout.decode('utf-8').strip().split('\n')
12+
13+
def check_git():
14+
rcode, stdout = run('git', '--version')
15+
return rcode == 0
16+
17+
def check_python():
18+
if os.path.exists('python'):
19+
if not os.path.isdir('python'):
20+
return 1
21+
else:
22+
if os.path.exists('python/.git'):
23+
return 0
24+
else:
25+
return 1
26+
else:
27+
return 1
28+
29+
def main():
30+
print("Building Python for Android 24 64-bit ARM (aarch64-linux-android)")
31+
print("Checking/installing dependencies")
32+
33+
if not check_git:
34+
print("Could not find Git. Is it in your PATH?")
35+
sys.exit(1)
36+
37+

python

Submodule python added at 1a79785

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy