Skip to content

swig support in distutils should use the build and temp dirs #46876

Closed

Description

@afflux
mannequin
BPO 2624
Nosy @loewis, @tarekziade, @akitada, @zooba
Files
  • python_distutils+swig.patch: patch
  • 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 2021-02-03.18:37:46.332>
    created_at = <Date 2008-04-12.12:53:23.955>
    labels = ['type-bug', 'library']
    title = 'swig support in distutils should use the build and temp dirs'
    updated_at = <Date 2021-02-03.18:37:46.332>
    user = 'https://bugs.python.org/afflux'

    bugs.python.org fields:

    activity = <Date 2021-02-03.18:37:46.332>
    actor = 'steve.dower'
    assignee = 'tarek'
    closed = True
    closed_date = <Date 2021-02-03.18:37:46.332>
    closer = 'steve.dower'
    components = ['Distutils']
    creation = <Date 2008-04-12.12:53:23.955>
    creator = 'afflux'
    dependencies = []
    files = ['10022']
    hgrepos = []
    issue_num = 2624
    keywords = ['patch']
    message_count = 8.0
    messages = ['65399', '65401', '65402', '65440', '65449', '81408', '81416', '386452']
    nosy_count = 7.0
    nosy_names = ['loewis', 'reowen', 'tarek', 'afflux', 'akitada', 'Jeff.Laughlin', 'steve.dower']
    pr_nums = []
    priority = 'normal'
    resolution = 'out of date'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue2624'
    versions = ['Python 3.1', 'Python 2.7', 'Python 3.2']

    Activity

    1. afflux commented on Apr 12, 2008

      affluxmannequin
      MannequinAuthor

      Distutils should tell swig to create it's C wrapper file into the
      temporary directory (eg. build/temp.linux-i686-2.5) and to write the
      language specific files to the library directory (eg.
      build/lib.linux-i686-2.5).

      Rationale:
      Without the language specific files, python swig extensions won't be
      able to run, so they should definetly be distributed by distutils.
      The wrapper files are build by-products and should therefore be in the
      temporary directory, so they get cleaned up on "setup.py clean".

    2. added
      type-bugAn unexpected behavior, bug, or error
      on Apr 12, 2008
    3. loewis commented on Apr 12, 2008

      loewismannequin
      Mannequin

      Can you provide a patch?

    4. afflux commented on Apr 12, 2008

      affluxmannequin
      MannequinAuthor

      Without having it tested very much, the attached patch fixes this issue
      for me.

    5. afflux commented on Apr 13, 2008

      affluxmannequin
      MannequinAuthor

      Note that the language specific files can't be handled via py_modules
      because this is processed before their generation.

    6. afflux commented on Apr 13, 2008

      affluxmannequin
      MannequinAuthor

      I noticed that my patch did not work for absolute directory names and
      adjusted the matching to fix this.

    7. added
      stdlibStandard Library Python modules in the Lib/ directory
      on Apr 13, 2008
    8. self-assigned this
      on Feb 6, 2009
    9. akitada commented on Feb 8, 2009

      akitadamannequin
      Mannequin

      Same with bpo-1016626?

    10. afflux commented on Feb 8, 2009

      affluxmannequin
      MannequinAuthor

      Except that the _wrap.c file would still be created at the wrong place,
      yes, you're right.

    11. zooba commented on Feb 3, 2021

      @zooba
      Member

      Distutils is now deprecated (see PEP-632) and all tagged issues are being closed. From now until removal, only release blocking issues will be considered for distutils.

      If this issue does not relate to distutils, please remove the component and reopen it. If you believe it still requires a fix, most likely the issue should be re-reported at https://github.com/pypa/setuptools

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

    Metadata

    Metadata

    Assignees

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions