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

Drop support for Python 2.7 #741

Closed
8 tasks done
miguelsousa opened this issue Feb 13, 2019 · 4 comments · Fixed by #856
Closed
8 tasks done

Drop support for Python 2.7 #741

miguelsousa opened this issue Feb 13, 2019 · 4 comments · Fixed by #856

Comments

@miguelsousa
Copy link
Member

miguelsousa commented Feb 13, 2019

After June 30th 2019 the afdko will officially only support Python 3.6+

  • Update CI
  • Remove py27-specific pytest.mark.xfail decorators
  • Remove __future__ imports
  • Remove subprocess32
  • Remove fontTools.misc.py23 items
  • Change format() to f-strings
  • Update installation and build-from-source instructions
  • Remove warning notice from README
@ShikiSuen
Copy link

Since macOS ships older version of Python, please also add some instructions on how to update the default python to 3.6 or newer on June 30th 2019.

@miguelsousa
Copy link
Member Author

@ShikiSuen I'd rather not do that because each system is different. I don't want the AFDKO to be responsible for providing instructions for every single configuration.

We've been providing Py3 wheels for a while, so I suggest that between now and June 30th you figure out how to get your system up and running.

On my Mac I installed Py3 via Homebrew, which also makes it very simple to update Python itself. I also installed Py2 the same way. I avoid the OS-installed Py2.
I assume there are alternative methods, including downloading the installer from python.org.

@ShikiSuen
Copy link

ShikiSuen commented Mar 12, 2019

@miguelsousa

Thanks for your reply.

It is a pain in the neck without using VPN to either install or use Homebrew in Mainland PRC. Even if using that, the datastream often gets choked by something wellknown.

I use MacPorts instead, but its configuration of Python is a little bit sophisticated.

Since adding the instructions of how-to-upgrade-python brings inconveniences to you people, then it looks like something must be done by some people to force Apple upgrade the built-in Python in future macOS releases. (Also, the bash, the sed, etc., lots of things.)

@frankrolf
Copy link
Member

IMO this is a completely different problem. The macOS built-in Python has become more and more brittle, and it is difficult to rely on.
In my experience, it always is better to run an alternative Python install, either installed via Homebrew, or as a download from python.org.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants