Skip to content

Commit 1c27f31

Browse files
committed
Fixed pygame dist for new python-install path etc
1 parent 9838eab commit 1c27f31

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

pythonforandroid/bootstraps/pygame/__init__.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,20 @@ def run_distribute(self):
4040
info('Copying python distribution')
4141
hostpython = sh.Command(self.ctx.hostpython)
4242
# AND: This *doesn't* need to be in arm env?
43-
shprint(hostpython, '-OO', '-m', 'compileall', join(self.ctx.build_dir, 'python-install'))
43+
shprint(hostpython, '-OO', '-m', 'compileall', self.ctx.get_python_install_dir())
4444
if not exists('python-install'):
45-
shprint(sh.cp, '-a', join(self.ctx.build_dir, 'python-install'), '.')
45+
shprint(sh.cp, '-a', self.ctx.get_python_install_dir(), './python-install')
4646

4747
info('Copying libs')
4848
# AND: Hardcoding armeabi - naughty!
4949
shprint(sh.mkdir, '-p', join('libs', 'armeabi'))
50-
for lib in glob.glob(join(self.ctx.libs_dir, '*')):
50+
for lib in glob.glob(join(self.build_dir, 'libs', 'armeabi', '*')):
51+
shprint(sh.cp, '-a', lib, join('libs', 'armeabi'))
52+
for lib in glob.glob(join(self.ctx.get_libs_dir('armeabi'), '*')):
5153
shprint(sh.cp, '-a', lib, join('libs', 'armeabi'))
5254

5355
info('Copying java files')
54-
for filename in glob.glob(join(self.ctx.build_dir, 'java', '*')):
56+
for filename in glob.glob(self.ctx.javaclass_dir):
5557
shprint(sh.cp, '-a', filename, 'src')
5658

5759
info('Filling private directory')

pythonforandroid/bootstraps/pygame/build/jni/application/Android.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ LOCAL_CFLAGS := $(foreach D, $(APP_SUBDIRS), -I$(LOCAL_PATH)/$(D)) \
1818
-I$(LOCAL_PATH)/../jpeg \
1919
-I$(LOCAL_PATH)/../intl \
2020
-I$(LOCAL_PATH)/.. \
21-
-I$(LOCAL_PATH)/../../../../python-install/include/python2.7
21+
-I$(LOCAL_PATH)/../../../../other_builds/python2/armeabi/python2/python-install/include/python2.7
22+
# -I$(LOCAL_PATH)/../../../../python-install/include/python2.7
2223
# -I$(LOCAL_PATH)/../../../build/python-install/include/python2.7
2324

2425

@@ -38,7 +39,7 @@ LOCAL_STATIC_LIBRARIES := jpeg png
3839
LOCAL_LDLIBS := -lpython2.7 -lGLESv1_CM -ldl -llog -lz
3940

4041
# AND: Another hardcoded path that should be templated
41-
LOCAL_LDFLAGS += -L$(LOCAL_PATH)/../../../../python-install/lib $(APPLICATION_ADDITIONAL_LDFLAGS)
42+
LOCAL_LDFLAGS += -L$(LOCAL_PATH)/../../../../other_builds/python2/armeabi/python2/python-install/lib $(APPLICATION_ADDITIONAL_LDFLAGS)
4243

4344
LIBS_WITH_LONG_SYMBOLS := $(strip $(shell \
4445
for f in $(LOCAL_PATH)/../../libs/$ARCH/*.so ; do \

pythonforandroid/recipes/vispy/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ class VispyRecipe(PythonRecipe):
1010
url = 'https://github.com/vispy/vispy/archive/v{version}.tar.gz'
1111
# version = 'campagnola-scenegraph-update'
1212
# url = 'https://github.com/campagnola/vispy/archive/scenegraph-update.zip'
13+
# version = '???'
14+
# url = 'https://github.com/inclement/vispy/archive/Eric89GXL-arcball.zip'
1315

1416
depends = ['python2', 'numpy', 'pysdl2']
1517

0 commit comments

Comments
 (0)