-
Notifications
You must be signed in to change notification settings - Fork 239
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
Adding Python 3.8, Always use nuget to install python on Windows #180
Conversation
EDIT: Argh, sorry, wrong PR. Moved to #184 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet! I love the amount of lines that can be removed! :)
cibuildwheel/windows.py
Outdated
# no easy and stable way fo installing python 3.4 | ||
python_configurations = [c for c in python_configurations if c.version != '2.7.x' and c.version != '3.4.x'] | ||
# no easy and stable way fo installing python 3.4 | ||
python_configurations = [c for c in python_configurations if c.version != '2.7.x'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this still up to date? At least the comment about 3.4 isn't.
Why can't we get nuget 2.7 on Travis?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
argh, I forgot I had to drop python 3.4 on this PR (no nuget python 3.4).
The issue on travis with 2.7 is not install python but the tools needed to build native code for python 2.7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, so it might be good to leave merging this PR until after we drop 3.4?
On the 2.7: is it really necessary to keep worrying about these VS tools for 2.7? I'm building C++17 wheels for Python 2.7 (without the ancient compiler VS offers for 2.7). I've tested this and it does work. The only catch is that "Microsoft Visual C++ Redistributable for Visual Studio 2017" needs to be installed, then, so I added a section about that to my docs.
My point being: maybe we could still offer 2.7, but make people aware that the tools won't be installed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO, this goes against the generic wheel principles (I think) which is, pip install should always work, no matter what, no need for further installs. My point is that if we want to offer python 2.7 support on travis, then it shall be an opt-in, not the default. This would require a specific PR.
Anyway, python 2.7 is EOL in less than 2 months. Shall we really do specific things for it ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm, that's also true, yes. And there's still AppVeyor anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, so it might be good to leave merging this PR until after we drop 3.4?
yes, if we want to merge it after #186 (official vs nuget). My guess is that in a couple months (after python 2.7/3.4) have been dropped, the only difference between the 2 PRs will be what to install and that, with official installers, we'll still need pep514tools vendored-in. The code in windows.py
will be almost the same, whatever the PR.
download('https://dist.nuget.org/win-x86-commandline/latest/nuget.exe', nuget) | ||
# get pip fo this installation which not have. | ||
get_pip_script = 'C:\\get-pip.py' | ||
download('https://bootstrap.pypa.io/get-pip.py', get_pip_script) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious: do nuget versions not have pip
installed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've not redone the test, it's merely a rewrite of the travis-ci PR which was doing this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure we hit the conditional statement lower in the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm, two lines and a download. Not sure if it's worth testing whether we can remove the lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm, two lines and a download. Not sure if it's worth testing whether we can remove the lines.
Not sure I fully understand this comment. If it only refers to get-pip
then no, we can't remove those (now tested).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's what I meant. That's kind of silly. Why do all these distributions not have pip
installed?
Depends on #168 (sort of), drops python 3.4 on windows. |
faa3168
to
b168fee
Compare
This is looking good to me! Anything else you'd like to do before merging @mayeut ? |
Also replace double-space by a backslash to show intent of a line-break.
@joerick, it seemed it was not possible to merge the PR with the merge you did. Instead, I rebased on the new master. Looks good to me, let's wait for CI.
|
e82c5f7
to
a95e596
Compare
Those README updates are okay, I think it will be simpler once @Czaki's PR is merged anyway. |
The only CI check remaining is AppVeyor which is rebuilding the 4 commits for the PS: @joerick, I can cancel/restart jobs on travis-ci but this doesn't seem to be the case on AppVeyor (I wanted to clean-up the build queue but not possible) |
@joerick, LGTM. |
According to pypa/cibuildwheel#180
Just a draft to check if it works on all windows providers.
c.f. #172 for full discussion