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

On OS-X the directories searched by setup.py for Tk are in the wrong order. #49063

Closed
MLModel mannequin opened this issue Jan 2, 2009 · 3 comments
Closed

On OS-X the directories searched by setup.py for Tk are in the wrong order. #49063

MLModel mannequin opened this issue Jan 2, 2009 · 3 comments
Labels
build The build process and cross-build

Comments

@MLModel
Copy link
Mannequin

MLModel mannequin commented Jan 2, 2009

BPO 4813
Nosy @ronaldoussoren, @MLModel

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 2010-07-24.10:32:38.522>
created_at = <Date 2009-01-02.23:50:05.666>
labels = ['build']
title = 'On OS-X the directories searched by setup.py for Tk are in the wrong order.'
updated_at = <Date 2010-07-24.10:32:38.521>
user = 'https://github.com/MLModel'

bugs.python.org fields:

activity = <Date 2010-07-24.10:32:38.521>
actor = 'ronaldoussoren'
assignee = 'none'
closed = True
closed_date = <Date 2010-07-24.10:32:38.522>
closer = 'ronaldoussoren'
components = ['Build']
creation = <Date 2009-01-02.23:50:05.666>
creator = 'MLModel'
dependencies = []
files = []
hgrepos = []
issue_num = 4813
keywords = []
message_count = 3.0
messages = ['78904', '109604', '111446']
nosy_count = 3.0
nosy_names = ['ronaldoussoren', 'MLModel', 'BreamoreBoy']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'compile error'
url = 'https://bugs.python.org/issue4813'
versions = ['Python 3.1', 'Python 2.7', 'Python 3.2']

@MLModel
Copy link
Mannequin Author

MLModel mannequin commented Jan 2, 2009

In function detect_tkinter_darwin of setup.py framework_dirs should be
the reverse of what it is: first the user's library should be searched,
then /Library, and finally /System/Library. If Tk 8.5 is installed in
/Library or ~/Library make will otherwise find the headers from 8.4 but
the libraries from 8.5.

bpo-4017 discusses this problem, among others, and is marked fixed,
but it is still incorrect in the 2.6 and 3.0 downloads as well as in the
trunk, 3.0, and 3.1 subversion repositories. It may have been "fixed"
in so far as someone was able to make a .dmg by manually altering
setup.py, and that's great, but it isn't fixed in the source and the
problem will reappear with each new version.

@MLModel MLModel mannequin added build The build process and cross-build labels Jan 2, 2009
@BreamoreBoy
Copy link
Mannequin

BreamoreBoy mannequin commented Jul 8, 2010

I've no idea whether this is still a problem.

@ronaldoussoren
Copy link
Contributor

This issue is no longer valid, the current search order from setup.py:

    def detect_tkinter_darwin(self, inc_dirs, lib_dirs):
        # The _tkinter module, using frameworks. Since frameworks are quite
        # different the UNIX search logic is not sharable.
        from os.path import join, exists
        framework_dirs = [
            '/Library/Frameworks',
            '/System/Library/Frameworks/',
            join(os.getenv('HOME'), '/Library/Frameworks')
        ]

        sysroot = macosx_sdk_root()

This matches the order in which the linker searches.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build
Projects
None yet
Development

No branches or pull requests

1 participant