-
Notifications
You must be signed in to change notification settings - Fork 166
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
Add Python 3 to more build machines #1674
Comments
On those build machines where Python 3 is already installed, we need to do: |
Need to add to ansible recipes (https://github.com/nodejs/build/search?p=3&q=python&type=&utf8=%E2%9C%93) |
Can we please get this resolves and closed? 303 daze left... |
some help getting ansible working properly with python3 would be great, I can't run it on my mac anymore for machines that need ccache and have to resort to linux where it uses python2. The line causing problems is https://github.com/nodejs/build/blob/master/ansible/roles/baselayout/tasks/ccache.yml#L13 and there's a similar one in ansible/roles/jenkins-worker/tasks/partials/docker-host.yml. |
Should we close this one or is this still an issue? |
We still need Python3 on more machines. |
Can we track progress in a table similar to the one below?
|
Is #1674 (comment) needed on the AIX machines? If so, after updating them all to have python3 available, #1775 (comment), I could do it. |
|
I ran #1800 on test-osuosl-centos7-ppc64_le-1, if it all still looks good tomorrow, I'll update the others.
|
I've spent more than an hour and a half looking for s390x RPMs for a python3, no luck yet. No s390x in: I'm finding some suggestions that if I use subscription-manager, I might be able to get it. I'm not exactly sure what we would have legal entitlement to (or if it would even work), and we are not currently registered for any subscriptions. I'm not very familiar with RH-derived distros, I might be missing something obvious. @nodejs/python or @nodejs/platform-s390, suggestions? |
@sam-github I suggest you talk to @miladfarca to see if he can get some ideas of who we might ask about python3 for the linuxOne machines. |
Updated second centos-ppc64_le:
|
What is the Python 2 version on those machines? We want python2 >= 2.7.9 |
@cclauss see #1674 (comment), I'm updating it |
Sorry, misread your comment, you want to know about python2, not python3. @cclauss I'll go look. |
|
@cclauss I don't understand why we need to update python2 to a supported version if we have python3. If it was easy, I'd just do it, but its not, so I am pushing back a bit. Why should we update Python2 if a supported version of Python3 exists? Especially given python2 is EOL on Jan 1, 2020? |
Let's focus first and foremost of getting a Python >= 3.5 on these machines (and in the $PATH). If it was up to me, I would just take out legacy Python completely and step into the future. However, Node.js is not yet compatible with Python 3. This exercise is to set up the tests on Python 3 but it is not yet clear if those tests will pass and build a workable Node.js. Therefor, Python 2 will be a part of Node.js beyond the 1/1/20 date so given that we will be depending on an unsupported codebase, we would like to uplevel the Python 2 to be >= 2.7.9 to encourage our users to avoid the most egregious attack vectors. If it is too much work to fix legacy Python in the near term, lets focus on upgrading Python as you suggest. Thanks much for all your hard work. |
see: #1807 |
Folks here, and @nodejs/python , we need more clarity on the expectation for python3. At least, I do. Python3 has to be >= 3.5.0. When system packages are available, I guess it will be in the system path, as Is this the intended setup, in other words, is it a requirement that And is this a requirement: #1674 (comment) ? On test-osuosl-centos7-ppc64--le-1:
I don't know much about pip, and nothing about pipenv, so it would help if we had a relatively clear statement of what was required. Possibly we want node itself to build with python3, if that is even possible. Is there some way I can test that manually? If I have a succinct recipe for what I should do manually on a machine once python3 is installed on it to verify the python3 environment fulfills expectations, that would be helpful. EDIT: also see #1807 (comment) |
pip is the package installer for Python. It is the essential bootstrap for installing packages. Without pip you can not install pyenv or any other Python packages so we need pip. You can try python3 -m ensurepip to install it but the preference would be an install which already includes pip. python3 --version
python3 -m pip --version |
If Python 3 is not there in the default
The ultimate goal of this activity is to build and test Node.js with both Python 3 and Python 2.
As far as I am concerned, we just need Python 3 in the default |
A Python install without pip is a painful thing so we should avoid it if we can. https://github.com/nodejs/node/blob/master/Makefile#L1316 and below use pip to install flake8 but linting on all platforms is not required. |
For anyone finding their python3 is lacking pip, or ctypes, libffi and zlib (the -dev versions of these) might be missing. |
See the note above (#1674 (comment)) about ensurepip. |
@cclauss Perhaps I misunderstood that comment, don't you suggest not using |
Are we done on this one? Can we start testing Python 3.6 on one of the Jenkins test machines? Python 3.7 is pending nodejs/node#29326 but Python 3.6 should be fair game to start testing. |
This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made. |
Continue the process started in #1644 of putting both Python 2 and Python 3 on various build machines so that we can perform tests and experimental builds on the Python 3.
nodejs/node#25759 (comment)
/R = @rvagg
The text was updated successfully, but these errors were encountered: