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 #9

Closed
goerz opened this issue Dec 13, 2018 · 4 comments
Closed

Python 3 #9

goerz opened this issue Dec 13, 2018 · 4 comments
Labels
enhancement New feature or request

Comments

@goerz
Copy link

goerz commented Dec 13, 2018

Would you be opposed to embedding Python 3 instead of Python 2? Python 2 is going to be dead next year, and I don't think a lot of people still want to stick to Python 2 for any new scripts. See also the discussion at blinksh/blink#555 (comment)

@ColdGrub1384
Copy link
Owner

I'm planning to do that. I have embedded Python 2.7 because ios_system does it, but I would also prefer Python 3.7. @holzschu has a repo for building Python 3.6: https://github.com/holzschu/python3_ios.
I will try to compile it and embed it on LibTerm. There is a repo that contains many Python versions prebuilt for iOS: https://github.com/pybee/Python-Apple-support/tree/3.7. I use its binary in Pyto, a Python 3.7 IDE I made, but it's the API, not the command. It could be embedded on LibTerm because there is a python_main function but the stdout, stderr and stdin would not be redirected. In Pyto, I have put a Python script that redirects only Python output and input. So, it's not for being used with ios_system.

@ColdGrub1384 ColdGrub1384 added the enhancement New feature or request label Dec 13, 2018
@ColdGrub1384
Copy link
Owner

I just opened this issue: holzschu/python3_ios#1.

@ColdGrub1384
Copy link
Owner

Good news! I successfully embedded Python 3.7! I will commit soon

@ColdGrub1384
Copy link
Owner

Updated to Python 3.7!!! 03853d0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants