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 2.x? Why not 3.x? #4963

Closed
cekvenich opened this issue Apr 21, 2019 · 3 comments
Closed

Python 2.x? Why not 3.x? #4963

cekvenich opened this issue Apr 21, 2019 · 3 comments
Labels
python issues related to the python language / extension question user / developer questions

Comments

@cekvenich
Copy link

I just came on this interesting project. Then I read the docs:
requires python --version point to a Python 2.x

So.. no support for Python 3.x?

@jgbradley1
Copy link
Contributor

You can install Python3 and use it from the terminal. In that sense, Python3 is supported. Some of the backend code uses Python2 but it won't effect you using Python3.

This issue is being worked on by several people in the community at the moment. Feel free to join and make any contributions you like.

#4956

@paul-marechal
Copy link
Member

paul-marechal commented Apr 22, 2019

I just came on this interesting project. Then I read the docs:
requires python --version point to a Python 2.x

So.. no support for Python 3.x?

It is a build requirement, as Theia depends on some Node native extensions, a minimal build toolchain is required, in order to be able to run node-gyp which handles building on install:
https://github.com/nodejs/node-gyp#on-unix

Then as @jgbradley1 said, the backend might depend on some way on python in your path pointing to Python 2.7 (pretty common on linux to have python refering to Python 2 and python3 refering to a Python 3.x interpreter, as some tools are bound to one version).

@akosyakov akosyakov added python issues related to the python language / extension question user / developer questions labels Apr 23, 2019
@AlexTugarev
Copy link
Contributor

python refering to Python 2 and python3 refering to a Python 3.x interpreter

👍

I'm closing this because the original question was answered already and node-gyp was mentioned as the reason to refer to python2 in the docs.

Just one thing in addition to that: you can configure npm to pick a particular python (e.g. for node-gyp) in order to avoid pollution of you dev environment like this:

npm config set python /usr/bin/python --global
&& npm config set python /usr/bin/python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python issues related to the python language / extension question user / developer questions
Projects
None yet
Development

No branches or pull requests

5 participants