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

dev-python/importlib_resources: Fix byte-compilation #14753

Closed
wants to merge 1 commit into from
Closed

dev-python/importlib_resources: Fix byte-compilation #14753

wants to merge 1 commit into from

Conversation

rseichter
Copy link
Contributor

Resolve QA warnings regarding Python byte-compilation.

Resolve QA warnings regarding Python byte-compilation.

Closes: https://bugs.gentoo.org/703104
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Ralph Seichter <gentoo@seichter.de>
@gentoo-bot
Copy link

Pull Request assignment

Submitter: @rseichter
Areas affected: ebuilds
Packages affected: dev-python/importlib_resources

dev-python/importlib_resources: @rseichter, @gentoo/proxy-maint, @sbraz, @gentoo/python

Linked bugs

Bugs linked: 703104


In order to force reassignment and/or bug reference scan, please append [please reassign] to the pull request title.

Docs: Code of ConductCopyright policy (expl.) ● DevmanualGitHub PRsProxy-maint guide

@gentoo-bot gentoo-bot added self-maintained The PR changes only packages that are maintained by the submitter (i.e. no need to ask anybody else) assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. labels Feb 23, 2020
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2020-02-23 22:29 UTC
Newest commit scanned: 762f0e7
Status: ✅ good

Issues already there before the PR (double-check them):
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#app-crypt/p11-kit
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#app-emulation/virtualbox-additions
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#app-emulation/virtualbox-guest-additions
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#app-emulation/virtualbox-modules
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#app-i18n/uim
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#app-shells/ctypes-sh
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#app-text/jo
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-db/pgagent
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-games/goatee
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-java/jamvm
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-java/jffi
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-java/jna
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-lang/ghc
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-lang/micropython
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-lang/moarvm
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-lang/php
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-lang/polyml
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-lang/python
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-lang/spidermonkey
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-libs/criterion
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-libs/gjs
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-libs/glib
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-libs/gobject-introspection
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-libs/wayland
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-lisp/ecls
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-lua/lgi
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-ml/ocaml-ctypes
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-python/cffi
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-python/pygobject
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-python/pypy-exe
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-python/pypy-exe-bin
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-python/pypy3-exe
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-python/pypy3-exe-bin
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-python/ssl-fetch
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-scheme/c-wrapper
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-scheme/guile
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-scheme/racket
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#dev-scheme/stklos
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#games-roguelike/mazesofmonad
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#gnome-extra/cjs
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#gnustep-base/gnustep-base
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#mail-client/thunderbird
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#net-dns/bind
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#net-im/mattermost-desktop-bin
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#net-misc/rabbitmq-server
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#net-misc/youtube-dl
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#net-proxy/haproxy
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#net-wireless/tempestsdr
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#sci-biology/abyss
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#sci-libs/xkaapi
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#sys-cluster/swift
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#sys-devel/llvm
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#sys-libs/libomp
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#sys-power/nut
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#www-client/firefox
https://qa-reports.gentoo.org/output/gentoo-ci/d547dc7/output.html#www-client/seamonkey

@sbraz
Copy link
Member

sbraz commented Feb 25, 2020

@rseichter I didn't notice this bug was still open, I might just drop Python 2 support from the package since it's going away eventually anyway.

@rseichter
Copy link
Contributor Author

rseichter commented Feb 25, 2020

@sbraz Hopefully, some fine day we can all stop supporting Python 2. ;-) For now, my fix does the job, and I'd be glad if somebody just merged it. You could do that, I assume?

rm "${BUILD_DIR}/lib/importlib_resources/_py3.py" || die
fi
if use doc; then
sphinx-build ${PN}/docs docs/_build/html || die
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you build it repeatedly for every impl?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, that used to be in python_compile_all and apparently I moved it for no reason that I can remember. ;-) Thinking of it now, would using distutils_enable_sphinx not be a better choice anyway?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would but I don't think it existed when I made the ebuild. I'm going to fix this locally before I merge the PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I'll leave it to you then.

@rseichter rseichter deleted the importlib_resources-200223 branch November 19, 2020 15:51
gentoo-bot pushed a commit that referenced this pull request Apr 16, 2023
This reverts commit 4b3133e671b958fa2c915a4faf57812820124a7b upstream.

See #14753 - possible corruption again, very similar symptoms to the
nightmare that was #11900 and same area of code.

We can safely revert it as it's an optimisation rather than a bugfix
in itself.

Keen Gentoo users may remember the following commits (in Gentoo):
- 8e5626d
- 9fb275f
- 95c250a

Bug: openzfs/zfs#14753
Bug: openzfs/zfs#11900
Signed-off-by: Sam James <sam@gentoo.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. self-maintained The PR changes only packages that are maintained by the submitter (i.e. no need to ask anybody else)
Projects
None yet
5 participants