| Summary: | devel/py-qt5: missing egg-info, invisible to pip | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Jakub Šebek <jamertwo> |
| Component: | Individual Port(s) | Assignee: | freebsd-kde (group) <kde> |
| Status: | Closed FIXED | ||
| Severity: | Affects Some People | CC: | arrowd, python |
| Priority: | --- | Keywords: | needs-qa |
| Version: | Latest | Flags: | bugzilla:
maintainer-feedback?
(kde) |
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Jakub Šebek
2021-09-17 22:03:56 UTC
Using pip with/as root is an unsupported Python configuration as it can and does produce inconsistent site-packages environments, while we understand why people might use it. Is this issue also reproducible using pip in a virtualenv using --system-site-packages with py-qt5 installed (via pkg) ? (In reply to Kubilay Kocak from comment #1) Yes, it is. Here is what I did: $ virtualenv --system-site-packages testenv Using base prefix '/usr/local' New python executable in /usr/home/jakubsebek/testenv/bin/python3.8 Also creating executable in /usr/home/jakubsebek/testenv/bin/python Installing setuptools, pip, wheel... done. $ source testenv/bin/activate (testenv) $ pip install pillow Requirement already satisfied: pillow in /usr/local/lib/python3.8/site-packages (8.2.0) (testenv) $ pip install PyQt5 Collecting PyQt5 Using cached PyQt5-5.15.4.tar.gz (3.3 MB) Installing build dependencies ... -^canceled You can see that pillow, which has been installed with `pkg install py38-pillow`, is found as expected. PyQt5, which has been installed with `pkg install py38-qt5`, isn't. The problem seems to be solved: (testenv) % pip install PyQt5 Requirement already satisfied: PyQt5 in /usr/local/lib/python3.9/site-packages (5.15.10) Requirement already satisfied: PyQt5-sip<13,>=12.13 in /usr/local/lib/python3.9/site-packages (from PyQt5) (12.13.0) |