RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1937492 - python3.8 sys.path doesn't include /usr/local/ under some conditions
Summary: python3.8 sys.path doesn't include /usr/local/ under some conditions
Keywords:
Status: CLOSED DUPLICATE of bug 1937494
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: python38
Version: CentOS Stream
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Python Maintainers
QA Contact: RHEL CS Apps Subsystem QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-10 18:31 UTC by Pat Riehecky
Modified: 2021-03-16 09:01 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1937494 (view as bug list)
Environment:
Last Closed: 2021-03-16 09:00:58 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Pat Riehecky 2021-03-10 18:31:53 UTC
Description of problem:

When I python packages into `/usr/local`, it comes as a surprise that `/usr/local/` is not within the default python search path.



Version-Release number of selected component (if applicable):python38-3.8.3-3.module_el8.3.0+468+0c52a667.x86_64


How reproducible: 100%


Steps to Reproduce:
1.python3.8 -m pip install --prefix=/usr/local/ SOMEPACKAGE_FROM_PYPI 
2.python3.8 -m SOMEPACKAGE_FROM_PYPI
3.

Actual results:

sys.path does not contain /usr/local

Expected results:

sys.path should contain /usr/local sections

Additional info:

Comment 1 Victor Stinner 2021-03-11 11:43:19 UTC
bz#1937494 is the same issue for Python 3.6, I propose to discuss the issue in bz#1937494.

Comment 2 Miro Hrončok 2021-03-16 09:00:58 UTC

*** This bug has been marked as a duplicate of bug 1937494 ***


Note You need to log in before you can comment on or make changes to this bug.