Skip to content

distutils doesn't search ".dll.a" as library on cygwin #48282

Closed

Description

@ocean-city
mannequin
BPO 4032
Nosy @amauryfa, @tarekziade, @merwok, @zooba, @dstufft, @ma8ma
PRs
  • bpo-2445: Allow the UnixCCompiler.find_library_file to correctly find DLL import libs (.dll.a) on Cygwin #4136
  • bpo-4032: Cygwin: Add .dll.a to UnixCCompiler for searching libraries #4153
  • Dependencies
  • bpo-2445: Use The CygwinCCompiler Under Cygwin
  • Files
  • unixccompiler-implib.patch
  • 2.7-unixccompiler-implib.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:19:19.242>
    created_at = <Date 2008-10-03.17:38:53.780>
    labels = ['3.7', 'type-bug', 'library', 'build']
    title = 'distutils doesn\'t search ".dll.a" as library on cygwin'
    updated_at = <Date 2021-02-03.18:19:19.241>
    user = 'https://bugs.python.org/ocean-city'

    bugs.python.org fields:

    activity = <Date 2021-02-03.18:19:19.241>
    actor = 'steve.dower'
    assignee = 'tarek'
    closed = True
    closed_date = <Date 2021-02-03.18:19:19.242>
    closer = 'steve.dower'
    components = ['Build', 'Distutils']
    creation = <Date 2008-10-03.17:38:53.780>
    creator = 'ocean-city'
    dependencies = ['2445']
    files = ['45261', '45262']
    hgrepos = []
    issue_num = 4032
    keywords = ['patch']
    message_count = 9.0
    messages = ['74265', '119371', '119378', '119379', '119843', '279661', '279662', '305125', '386326']
    nosy_count = 11.0
    nosy_names = ['jlt63', 'amaury.forgeotdarc', 'ocean-city', 'vitalyy2000', 'tarek', 'tan2', 'eric.araujo', 'rpetrov', 'steve.dower', 'dstufft', 'masamoto']
    pr_nums = ['4136', '4153']
    priority = 'normal'
    resolution = 'out of date'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue4032'
    versions = ['Python 2.7', 'Python 3.7']

    Activity

    1. ocean-city commented on Oct 3, 2008

      ocean-citymannequin
      MannequinAuthor

      This issue is derived from bpo-1706863.

    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      on Oct 3, 2008
    3. changed the title [-]disutils cannot recognize ".dll.a" as library on cygwin[/-] [+]distutils cannot recognize ".dll.a" as library on cygwin[/+] on Oct 11, 2008
    4. self-assigned this
      on Feb 6, 2009
    5. merwok commented on Oct 22, 2010

      @merwok
      Member

      Can you produce a patch?

      (Removing Terry from nosy at his request)

    6. ocean-city commented on Oct 22, 2010

      ocean-citymannequin
      MannequinAuthor

      I used to create the patch
      http://bugs.python.org/file11597/experimental_distutils.patch
      in bpo-1706863, but cygwin guys wanted this code implemented
      in CCygwinCompiler class (See bpo-2445).

      I think bpo-2445 should be resolved before.

    7. ocean-city commented on Oct 22, 2010

      ocean-citymannequin
      MannequinAuthor

      Can you port that patch? I don't have cygwin installed now.

    8. merwok commented on Oct 29, 2010

      @merwok
      Member

      Okay, let’s reach a conclusion on the other bug before getting back to this one.

    9. ma8ma commented on Oct 29, 2016

      ma8mamannequin
      Mannequin

      Move version to 3.7 and 2.7, and I updated two patches adding import library type for file searching.

      Current Cygwin is used UnixCCompiler, and the compiler has be able to build extension module that doesn't need to library link at build time (e.g. array). And CygwinCCompiler has supported old version compilers, but its haven't maintained on Current Cygwin any longer. Therefore I think there is no necessary that waits solution to bpo-2445 and bpo-18654.

      So would you be able to free dependence to bpo-2445, and start to review the patches?
      Many thanks.

    10. added
      buildThe build process and cross-build
      and removed on Oct 29, 2016
    11. changed the title [-]distutils cannot recognize ".dll.a" as library on cygwin[/-] [+]distutils doesn't search ".dll.a" as library on cygwin[/+] on Oct 29, 2016
    12. added
      type-bugAn unexpected behavior, bug, or error
      on Oct 29, 2016
    13. ma8ma commented on Oct 29, 2016

      ma8mamannequin
      Mannequin

      And updated patch for 2.7

    14. ma8ma commented on Oct 27, 2017

      ma8mamannequin
      Mannequin

      I opened PR 4153 that is an alternative for PR 4136 (bpo-2445).

    15. 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

    16. 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

    3.7 (EOL)end of lifebuildThe build process and cross-buildstdlibStandard 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