Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.5.0/3.6.0 #105

Closed
kuri65536 opened this issue Sep 29, 2015 · 5 comments
Closed

Python 3.5.0/3.6.0 #105

kuri65536 opened this issue Sep 29, 2015 · 5 comments

Comments

@kuri65536
Copy link
Owner

follow to new release of python3.

@kuri65536
Copy link
Owner Author

kuri65536 commented Sep 29, 2015

Here is problem: https://bugs.python.org/issue22625
=> fixed in original source.
=> work around:
1. define HOSTFILIB=$(HOSTPYTHON)/bin/host_freeze_importlib in Makefile
2. patch python-src_arm/Makefile.pre.in

@kuri65536
Copy link
Owner Author

kuri65536 commented Sep 29, 2015

fixed in original source.
Here is problem: run python3 binaries and import error in basic modules with new async syntax.
=> work around:
1. define PYTHON_FOR_BUILD = $(HOSTPYTHON)/bin/python3 in Makefile

@kuri65536
Copy link
Owner Author

kuri65536 commented Sep 29, 2015

Here is problem: compilation will failed with 'no such file: _multiprocessing/multiprocessing.c'
=> fixed setup.py script, but there is some problems in Makefile script.

running build
running build_ext
INFO: Can't locate Tcl/Tk libs and/or headers
building '_struct' extension
arm-linux-androideabi-gcc -fPIC -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Werror=declaration-after-statement -I./Include -I/home/shimoda/python-for-android.git/python3-alpha/host/include -I. -IInclude -I/usr/local/include -I/home/shimoda/python-for-android.git/python3-alpha/host/include/python3.5m -c _struct.c -o build/temp.linux-x86_64-3.5/_struct.o
arm-linux-androideabi-gcc: error: _struct.c: No such file or directory
arm-linux-androideabi-gcc: fatal error: no input files
compilation terminated.

kuri65536 referenced this issue Jan 13, 2017
- remove configure patch for PYTHON_FOR_BUILD. it maybe work collectly.
- remove setup.py patch for library=m, already care in original code.
- remove mpmemory.h patch for _decimal, memory.h was no longer used.
- remove HOSTPGEN variable by Issue #19142
- remove /system/bin/sh patch by Issue #27472 . (already case android)
- remove pythonrun patch. (removed codec)
- remove pytime patch. (removed HAVE_FTIME)
- remove socketmodule patch. (already care android < 23 by python original code)
kuri65536 referenced this issue Jan 13, 2017
- no input files error: issue 22699
- some cross compilation flags not passed to setup.py
@kuri65536
Copy link
Owner Author

kuri65536 commented Jan 13, 2017

This is 1st version of Python-3.6.0, but not tested yet.

@kuri65536 kuri65536 changed the title Python 3.5.0 Python 3.5.0/3.6.0 Jan 21, 2017
@kuri65536
Copy link
Owner Author

Now work in progress...

n7000 lib # sh /storage/sdcard0/python3.sh 
/storage/sdcard0/python3.sh[20]: python: not found
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python 3.6.0 (default, Jan 20 2017, 08:06:36) 
[GCC 4.9 20140827 (prerelease)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> ls
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'ls' is not defined
>>> dir
<built-in function dir>
>>> import ensure_pip
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'ensure_pip'
>>> import pip
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pip'
>>> print("%d" % 111_222_333_444)
111222333444

New feature "_" worked.

kuri65536 added a commit that referenced this issue Jan 21, 2017
- module readline and ncurses not worked by build problems (?).
- module bzip2 not worked by packaging problemns (?).
kuri65536 added a commit that referenced this issue Mar 4, 2017
- append patches missing in rev.289 (e6d9809cb2d8) 1st relase of Python 3.6.0 #105
- enable ensurepip for #131.
- fix to load sqlite3, ncurses and readline, changed to shared lib

    (options are matched to python2)

- build multiple platforms in same source: ncurses and readline.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant