Skip to content

Commit

Permalink
build with andriod studio 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kuri65536 committed Jan 17, 2017
1 parent 67bbc71 commit 13c393c
Show file tree
Hide file tree
Showing 10 changed files with 53 additions and 35 deletions.
5 changes: 2 additions & 3 deletions android/Common/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
buildscript {
repositories {
mavenCentral()
jcenter()
}

dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
classpath 'com.android.tools.build:gradle:2.2.0'
}
}

Expand Down
5 changes: 2 additions & 3 deletions android/InterpreterForAndroid/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
buildscript {
repositories {
mavenCentral()
jcenter()
}

dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
classpath 'com.android.tools.build:gradle:2.2.0'
}
}

Expand Down
25 changes: 20 additions & 5 deletions android/Python3ForAndroid/README
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
Python 3 Interpreter For Android
# Python 3 Interpreter For Android

In order to build this project first you need to gradle build other projects,
see settings.gradle:

In order to build this project first you need to ant build this projects:
Utils
Common
InterpreterForAndroid

Copy the generated jar files (<project>/dist) into Python3ForAndroid/libs each time
any of them is upgraded

The Python3 build is still very incoherent.


# setup

1. edit local.properties to specify Android SDK.

`sdk.dir=/home/shinji/install/android-sdk`

2. You also need to build ../python3-alpha by running

`NDK_PATH=/where/to/android-ndk make build`

in that folder.

3. And then running python3.sh once it ended the build process.

5 changes: 2 additions & 3 deletions android/Python3ForAndroid/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ task genURL << {

buildscript {
repositories {
mavenCentral()
jcenter()
}

dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
classpath 'com.android.tools.build:gradle:2.2.0'
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,17 @@ protected String pathShlib() {

@Override
protected String pathEgg() {
return this.pathShlib() + "/python3.4/egg-info";
return this.pathShlib() + "/python3.6/egg-info";
}

@Override
protected String pathSitepkgs() {
return this.pathShlib() + "/python3.4/site-packages";
return this.pathShlib() + "/python3.6/site-packages";
}

@Override
protected String pathDynload() {
return this.pathShlib() + "/python3.4/lib-dynload";
return this.pathShlib() + "/python3.6/lib-dynload";
}

@Override
Expand Down Expand Up @@ -93,7 +93,7 @@ public String getName() {

@Override
public String getNiceName() {
return "Python 3.4.3";
return "Python 3.6.0";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
* the module contains shared libraries (*.so) then the module is unpacked into data, other installs
* in extras.
*
* Typically, these will be /data/data/com.googlecode.pythonforandroid/files/python/lib/python3.4
* Typically, these will be /data/data/com.googlecode.python3forandroid/files/python/lib/python3.6
* and /sdcard/com.googlecode.pythonforandroid/extras respectively.
*
* Egg files are just copied into
* /data/data/com.googlecode.pythonforandroid/files/python/lib/python3.4
* /data/data/com.googlecode.python3forandroid/files/python/lib/python3.6
*
* @author Damon
* @author Robbie Matthews (rjmatthews62@gmail.com)
Expand Down
5 changes: 2 additions & 3 deletions android/PythonCommon/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
buildscript {
repositories {
mavenCentral()
jcenter()
}

dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
classpath 'com.android.tools.build:gradle:2.2.0'
}
}

Expand Down
21 changes: 15 additions & 6 deletions android/PythonForAndroid/README
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
Python Interpreter For Android
# Python Interpreter For Android

In order to build this project first you need to gradle build other projects,
see settings.gradle:

In order to build this project first you need to ant build this projects:
Utils
Common
InterpreterForAndroid

Copy the generated jar files (<project>/dist) into PythonForAndroid/libs each time
any of them is upgraded

You also need to build ../python-build by running build.sh in that folder and
then running standalone_python.sh once it ended the build process
# setup

1. edit local.properties to specify Android SDK.

`sdk.dir=/home/shinji/install/android-sdk`

2. You also need to build ../python-build by running

`NDK_PATH=/where/to/android-ndk make build` in that folder.

3. And then running python2.sh once it ended the build process.

5 changes: 2 additions & 3 deletions android/PythonForAndroid/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ task genURL << {

buildscript {
repositories {
mavenCentral()
jcenter()
}

dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
classpath 'com.android.tools.build:gradle:2.2.0'
}
}

Expand Down
5 changes: 2 additions & 3 deletions android/Utils/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
buildscript {
repositories {
mavenCentral()
jcenter()
}

dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
classpath 'com.android.tools.build:gradle:2.2.0'
}
}

Expand Down

0 comments on commit 13c393c

Please sign in to comment.