Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup and distutils changes. #35026

Closed
ballie01 mannequin opened this issue Aug 22, 2001 · 3 comments
Closed

Setup and distutils changes. #35026

ballie01 mannequin opened this issue Aug 22, 2001 · 3 comments
Labels
stdlib Python modules in the Lib dir

Comments

@ballie01
Copy link
Mannequin

ballie01 mannequin commented Aug 22, 2001

BPO 454041
Nosy @loewis
Files
  • uw7_setup.patch: Patch for setup.py
  • uw7_ccompiler.patch
  • uw7_unixccompiler.patch: Patch for Lib/distutils/unixcompiler.py
  • uw7_msvccompiler.patch: Patch for Lib/distutils/msvcompiler.py
  • uw7_mwerkscompiler.patch: Patch for Lib/distutils/mwerkscompiler.py
  • uw7_uslccompiler.patch: Patch to add Lib/distutils/uslccompiler.py
  • uw7_setup_2.patch: Updated patch for setup.py.
  • 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 = <Date 2002-09-22.09:33:54.000>
    created_at = <Date 2001-08-22.01:01:58.000>
    labels = ['library']
    title = 'Setup and distutils changes.'
    updated_at = <Date 2002-09-22.09:33:54.000>
    user = 'https://bugs.python.org/ballie01'

    bugs.python.org fields:

    activity = <Date 2002-09-22.09:33:54.000>
    actor = 'loewis'
    assignee = 'none'
    closed = True
    closed_date = None
    closer = None
    components = ['Distutils']
    creation = <Date 2001-08-22.01:01:58.000>
    creator = 'ballie01'
    dependencies = []
    files = ['3558', '3559', '3560', '3561', '3562', '3563', '3564']
    hgrepos = []
    issue_num = 454041
    keywords = ['patch']
    message_count = 3.0
    messages = ['37416', '37417', '37418']
    nosy_count = 2.0
    nosy_names = ['loewis', 'ballie01']
    pr_nums = []
    priority = 'normal'
    resolution = 'rejected'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue454041'
    versions = []

    @ballie01
    Copy link
    Mannequin Author

    ballie01 mannequin commented Aug 22, 2001

    The attached patches change setup.py and the distutils
    compiler modules to allow dynamically loaded modules
    that are built against shared libraries to be built
    with the appropriate runtime library search directories
    set as needed. The attached patches and a description
    of what they do follows:

    1. uw7_setup.patch
      This patch modifies setup.py to:

      • have find_library_file() search for the
        directory where a given library file is lo-
        cated, and returns a tuple '(dirs, rt_dirs)'
        where 'dirs' is a possibly-empty list of
        additional directories and 'rt_dirs' is a
        possibly-empty list of directories to be
        searched at runtime. If the file couldn't be
        found at all, None is returned.
      • use the modified find_library_file() to set the
        runtime_library_dirs parameter to Extension()
        method so that the appropriate linker option to
        embed the runtime library directory search path
        in the dynamically load module will be gener-
        ated. Whether or not the option is generated
        is controlled by the distutils compiler class.
      • add the curses and terminfo library to the
        libraries searched when the readline module is
        built.
    2. uw7_ccompiler.patch
      This patch modifies Lib/distutils/ccompiler.py as
      follows:

      • The runtime_library_dir_option() method was
        change so that it returns an empty list instead
        of raising the NotImplemented exception. This
        was done so that a reasonable default will be
        used for those systems that do not need to
        specify a runtime search path for libraries.
        It is possible that setup.py will determine
        that a directory will be needed to be searched
        at runtime, even if a particular system or
        compiler do not support or need to have a
        runtime directory search patch defined. In
        this case, the compiler class should return an
        empty list when runtime_library_dir_option() is
        called.
      • Changed how runtime_library_dir_option() is
        called. Instead of calling it once for each
        directory in the runtime_library_dirs list, it
        is called once, passing it the entire list of
        directories to be searched at runtime. This
        pushes the decision of how to format the option
        to the system specific compiler class. Some
        systems (UnixWare, for example) only allow a
        single -R option to be specified, followed by a
        colon (:) separated list of directories to
        search.
      • Added support for a new compiler class,
        USLCcompiler. This compiler class supports
        Unix System Labs style C compilers. UnixWare
        uses this compiler class. Sun's native
        compiler for Solaris use to be based on the
        Unix System Lab's C compiler. I don't know if
        this is still the case.
    3. uw7_unixccompiler.patch
      This patch modifies Lib/distutils/unixccompier.py
      so that is no longer defines it's own version of
      runtime_library_dir_option(). Most system's that
      used this compiler do not need to specify a runtime
      directory search path via an ld option.

    4. uw7_msvccompiler.patch and uw7_mwerkscompiler.patch
      These patches update Lib/distutils/msvccompiler.py
      and Lib/distutils/mwerkscompiler.py so that being
      passed something in runtime_library_dirs does not
      raise an exception. They will now print a warning
      message if runtime_library_dirs is not empty or
      None. They will return an empty list if
      runtime_library_dir_option() is called.

    5. uw7_uslccompiler.patch
      This patch adds the USLCCompiler class.

    @ballie01 ballie01 mannequin closed this as completed Aug 22, 2001
    @ballie01 ballie01 mannequin added the stdlib Python modules in the Lib dir label Aug 22, 2001
    @ballie01 ballie01 mannequin closed this as completed Aug 22, 2001
    @ballie01 ballie01 mannequin added the stdlib Python modules in the Lib dir label Aug 22, 2001
    @ballie01
    Copy link
    Mannequin Author

    ballie01 mannequin commented Aug 23, 2001

    Logged In: YES
    user_id=8500

    A new version of the setup.py patch, uw7_setup_2.patch has
    been uploaded. This takes info account the recent change to
    setup.py in regards to the bsddb module. Please use this
    patch in place of uw7_setup_2.patch.

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Sep 22, 2002

    Logged In: YES
    user_id=21627

    There is apparently no interest in this patch, so I'm
    rejecting it.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants