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
Remove Lib/plat-*/* files #72214
Comments
After discussion at the core dev sprints, Guido has decreed that the files in Lib/plat-* can and should be removed. |
New changeset 14d89359a389 by Zachary Ware in branch 'default': |
Will close this after the buildbots have confirmed they don't hate it. |
New changeset e256583e6062 by Zachary Ware in branch 'default': |
Thanks :-) |
None of the buildbots have complained about this (they've been too busy complaining about other things), so I'm closing it. |
Yeah! Thanks Zach :-) |
YES, finally. Thanks :) |
FYI I first proposed to remove plat-* in 2011: That's why I added os.RTDL_* constants: |
the removal of these modules should follow the normal deprecation process, for 3.6, then be removed for 3.7. There is no harm for this approach. |
Why? Do you have a dependency on these? None of them are documented. |
Since the 3.6 cycle, these modules are regenerated for the build, so they are not outdated anymore. They are not a maintenance burden either. So I'd like to see these available in 3.6, and documented as deprecated. Then removed in 3.7. Apparently the proposers for this removal don't have the time for an analysis before the beta, I don't have the time either. So pretty please let's revert that change, and instead have the deprecation documented. |
No, you need to demonstrate that they are used (despite undocumented). On Fri, Sep 9, 2016 at 2:26 PM, Matthias Klose <report@bugs.python.org> wrote:
|
I have been searching sources.debian.net, and have found no evidence of anything that would be broken by this. Every use of these modules that I have found has been already wrapped in try/except ImportError, or is in code that is fairly obviously not meant for Python 3. |
whatever you searched, there are regressions: https://codesearch.debian.net/search?q=import+DLFCN some of these have conditional imports, however even boost uses unconditional imports, and is often used as an embedded copy. |
Those boost imports will never be triggered in Python 3, because sys.platform will never be 'linux2'. |
I see 8 projects: boost, trilinos, vtk6, openbabel, gdcm, paraview, ecasound, yade. It doesn't like a giant project to update them.
It's not like this code already works on Python 3 :-) sys.platform was replace with "linux" on Python 3. It's easy to replace this import with: try: |
these projects are the ones packaged by Debian; there are surely others. Now again, why can't the actual removal for 3.7, following the usual deprecation rules? |
Because in every release of Python they have been undocumented, in any recent release of Python they have been inaccurate (at best) and probably unnecessary, they have been unmaintained for years, the presence of the plat-* dir on sys.path slows down imports from any directory after it on sys.path, the problem they purport to solve has other much better solutions, and this discussion started 5 years ago with only the the slightest of defenses from MvL. |
Indeed, they are regenerated by the changes made in bpo-23968 ("rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)"). And they are a maintenance burden as these changes fail to regenerate these modules on Android cross-builds as explained in msg269360, the generation being done with the headers of the build system instead of the target host (Android) system. The problem is not limited to Android cross-compilation of course. |
The FreeBSD packager told me that he is *very* happy to see these modules go away, it was also a pain for him to maintain a patch for them. The maintaince burden is even wider than Python source code. |
With no solid evidence against the change and much joy with the change, I'm reclosing the issue. doko, if people complain to you about being broken by this, feel free to refer them to me. |
you asked for evidence, you got evidence. re-opening the issue again. feel free to close it again without any evidence, and stating that you ignore the usual deprecation rules. |
Matthias Klose: Maybe you didn't understand something: breaking the backward compatibility was a deliberate choice. It's a matter of maintenance burden versus the number of broken applications. According to your search, there are only 8 projects in the wild which will break on Python 3.6. Please compare this number to the number of Python modules on PyPI: 88 298 packages, according to https://pypi.python.org/pypi Moreover, it seems like some of these 8 projects are not compatible with Python 3 yet, so it's not like this specific change broke them... Finally, I don't like repeating myself, but: fixing these project requires to modify A SINGLE LINE OF CODE. I know well that Debian likes patching packages, it's not like it is something technically impossible. Please don't reopen the issue again without a very strong argument. |
"It's a matter of maintenance burden". No I don't think so. As agreed on IRC with zware, I'll restore the removed modules, including a deprecation notice. |
"Agreed" is a bit strong, I still don't agree that the change was bad or should be reverted. I'm just not ruling out the possibility of a partial (because there is absolutely no reason to re-add the files for any platform but Linux and *maybe* OSX) reversion if you put forth the effort to do it after bpo-28046 and add deprecation notice. |
Sorry, I'm leaving this discussion now. |
The modules should remain deleted for 3.6b1 so we can see if there are |
Since we've reached 3.6.3 with no complaints that have made it to me, I'm going to go ahead and close the issue. |
Thank you Zachary for this removal ;-) |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: