GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — python should inherit the library search path from the compiler for stdlib extensions · Issue #56627 · python/cpython

python should inherit the library search path from the compiler for stdlib extensions #56627

New issue
Copy link
New issue
Copy link
Open
Open
python should inherit the library search path from the compiler for stdlib extensions#56627
Copy link
Labels
buildThe build process and cross-buildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

vorlon
mannequin
opened on Jun 27, 2011
Issue body actions
BPO 12418
Nosy @warsaw, @doko42, @merwok

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:

assignee = None
closed_at = None
created_at = <Date 2011-06-27.12:02:18.830>
labels = ['type-bug', 'build']
title = 'python should inherit the library search path from the compiler for stdlib extensions'
updated_at = <Date 2011-07-11.15:53:57.049>
user = 'https://bugs.python.org/vorlon'

bugs.python.org fields:

activity = <Date 2011-07-11.15:53:57.049>
actor = 'eric.araujo'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Build']
creation = <Date 2011-06-27.12:02:18.830>
creator = 'vorlon'
dependencies = []
files = []
hgrepos = []
issue_num = 12418
keywords = []
message_count = 4.0
messages = ['139259', '139653', '140060', '140136']
nosy_count = 4.0
nosy_names = ['barry', 'doko', 'eric.araujo', 'vorlon']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue12418'
versions = ['Python 3.3']

Activity

  1. vorlon commented on Jun 27, 2011

    @vorlon
    vorlonmannequin
    on Jun 27, 2011
    MannequinAuthor
    More actions

    related to http://bugs.python.org/issue11715

    python 2.7 and 3.1 now include a patch for behavior specific to Ubuntu and Debian to search in multiarch directories for libraries needed for building stdlib extensions.

    This distro-specific patch is unnecessary if instead python could just query and use the default search path from the compiler.

    With gcc, it's possible to query the list of built-in library directories with:

    $ gcc -print-search-dirs | sed -n -e's/libraries: =//p' | sed -e's/:/\n/g' | xargs -n1 readlink -f

    and the include directories with:

    $ gcc -v -E - < /dev/null 2>&1 | awk '/^#include/,/^End of search/ {i=1} i==1 && /^ / {print}'

    (additional filtering, to exclude compiler-internal directories, may be sensible.)

    Having python query and use these directories when searching for libraries would make the build system more robust in a variety of circumstances.

  2. vorlon
    added
    buildThe build process and cross-buildThe build process and cross-build
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Jun 27, 2011
  3. merwok commented on Jul 2, 2011

    @merwok
    merwok
    on Jul 2, 2011
    Member
    More actions

    Do you know if all compilers supported by CPython have a similar option?

  4. doko42 commented on Jul 9, 2011

    @doko42
    doko42
    on Jul 9, 2011
    Member
    More actions

    I don't think so. But maybe it would be enough to special case GCC as a unix compiler? At least there are already autoconf checks trying to detect gcc.

  5. merwok commented on Jul 11, 2011

    @merwok
    merwok
    on Jul 11, 2011
    Member
    More actions

    But maybe it would be enough to special case GCC as a unix compiler?
    At least there are already autoconf checks trying to detect gcc.

    Yes, we could try that. Steve, would you like to propose a patch?

  6. ezio-melotti
    transferred this issue fromon Apr 10, 2022
  7. vasiliyk commented on Nov 2, 2026

    @vasiliyk
    vasiliyk
    on Nov 2, 2026
    Contributor
    More actions

    Obsolete since #94474 (3.12):
    extension modules are built by configure and make, and the libraries they need are found by autoconf and pkg-config checks that go through the compiler's own search path.

    Can this be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildThe build process and cross-buildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.