Skip to content

distutils ignores configure's --includedir #40847

Closed

Description

@josephwinston
BPO 1019715
Nosy @orsenthil, @matejcik, @tarekziade, @akitada
Superseder
  • bpo-858809: Use directories from configure rather than hardcoded
  • 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 = 'https://github.com/tarekziade'
    closed_at = <Date 2009-09-14.13:11:09.529>
    created_at = <Date 2004-08-31.14:37:25.000>
    labels = ['type-bug', 'library']
    title = "distutils ignores configure's --includedir"
    updated_at = <Date 2010-08-11.05:49:28.872>
    user = 'https://bugs.python.org/josephwinston'

    bugs.python.org fields:

    activity = <Date 2010-08-11.05:49:28.872>
    actor = 'eric.araujo'
    assignee = 'tarek'
    closed = True
    closed_date = <Date 2009-09-14.13:11:09.529>
    closer = 'orsenthil'
    components = ['Distutils']
    creation = <Date 2004-08-31.14:37:25.000>
    creator = 'josephwinston'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 1019715
    keywords = []
    message_count = 4.0
    messages = ['60561', '81098', '92542', '92608']
    nosy_count = 5.0
    nosy_names = ['josephwinston', 'orsenthil', 'matejcik', 'tarek', 'akitada']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = None
    status = 'closed'
    superseder = '858809'
    type = 'behavior'
    url = 'https://bugs.python.org/issue1019715'
    versions = ['Python 2.6', 'Python 3.0', 'Python 3.1', 'Python 2.7']

    Activity

    1. josephwinston commented on Aug 31, 2004

      josephwinstonmannequin
      MannequinAuthor
      1. configure and build python using the --includedir
        option. For example:
      $ configure --prefix=/TANGO/3/rel
      --includedir=/TANGO/3/rel/inc
      1. Run
      $ make install
      1. Notice that the include files are placed in
        /TANGO/3/rel/include not /TANGO/3/rel/inc.

      2. Verify with

      $ python -c 'from distutils.sysconfig import *;print
      get_python_inc()
      1. The problem is that get_python_inc() hard codes the
        include file path to use the name "include"

      2. Other programs using distutils will fail since the
        INSTALL_SCHEMES found in install.py also have the name
        "include" hard coded.

      3. Suggested fix would be to use --includedir to
        calculate the include path used by distutils.

    2. added
      stdlib
      on Aug 31, 2004
    3. akitada commented on Feb 3, 2009

      akitadamannequin
      Mannequin

      I'm having the same problem.
      This is a real headache, especially on systems that
      run both 32-bit and 64-bit apps, where I often see
      "lib64", "include64" and "bin64".

      In my opinion, lib, include and bin shouldn't be hard-coded in anywhere.

      Note that these hard-coded paths are found in other places, too.
      See http://bugs.python.org/issue1294959 for further detials.

    4. added
      type-bug
      on Feb 4, 2009
    5. akitada commented on Sep 12, 2009

      akitadamannequin
      Mannequin

      I think this is duplicate of bpo-858809.

    6. orsenthil commented on Sep 14, 2009

      @orsenthil
      Member

      Yes, this is a duplicate of bpo-858809 and tarek is assigned to that
      one too.

    7. transferred this issue fromon Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    stdlibtype-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions