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

Why does Python link to Foundation? #40952

Closed
etrepum mannequin opened this issue Sep 24, 2004 · 6 comments
Closed

Why does Python link to Foundation? #40952

etrepum mannequin opened this issue Sep 24, 2004 · 6 comments
Assignees
Labels

Comments

@etrepum
Copy link
Mannequin

etrepum mannequin commented Sep 24, 2004

BPO 1034277
Nosy @brettcannon, @jackjansen, @etrepum

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/jackjansen'
closed_at = <Date 2004-11-06.20:08:08.000>
created_at = <Date 2004-09-24.19:05:08.000>
labels = ['OS-mac']
title = 'Why does Python link to Foundation?'
updated_at = <Date 2004-11-06.20:08:08.000>
user = 'https://github.com/etrepum'

bugs.python.org fields:

activity = <Date 2004-11-06.20:08:08.000>
actor = 'brett.cannon'
assignee = 'jackjansen'
closed = True
closed_date = None
closer = None
components = ['macOS']
creation = <Date 2004-09-24.19:05:08.000>
creator = 'bob.ippolito'
dependencies = []
files = []
hgrepos = []
issue_num = 1034277
keywords = []
message_count = 6.0
messages = ['22545', '22546', '22547', '22548', '22549', '22550']
nosy_count = 3.0
nosy_names = ['brett.cannon', 'jackjansen', 'bob.ippolito']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1034277'
versions = ['Python 2.4']

@etrepum
Copy link
Mannequin Author

etrepum mannequin commented Sep 24, 2004

I can't see any reason for Python to link to Foundation, so I don't
think it should. Am I missing something?

@etrepum etrepum mannequin closed this as completed Sep 24, 2004
@etrepum etrepum mannequin assigned jackjansen Sep 24, 2004
@etrepum etrepum mannequin added the OS-mac label Sep 24, 2004
@etrepum etrepum mannequin closed this as completed Sep 24, 2004
@etrepum etrepum mannequin assigned jackjansen Sep 24, 2004
@etrepum etrepum mannequin added the OS-mac label Sep 24, 2004
@etrepum
Copy link
Mannequin Author

etrepum mannequin commented Sep 27, 2004

Logged In: YES
user_id=139309

mactoolboxglue seems to be the culprit. I don't think linking to
Foundation is necessary, but it seems that CoreFoundation is (for now,
anyway).

locateResourcePy uses CoreFoundation, which is used in the public API
implementation of PyMac_GetAppletScriptFile.. however
PyMac_GetAppletScriptFile is not used anywhere! I would like to
remove it.

@etrepum
Copy link
Mannequin Author

etrepum mannequin commented Sep 27, 2004

Logged In: YES
user_id=139309

Removing those unused functions, we're left with two functions that
require CoreServices:

PyMac_StrError
GetResource
HLock
HUnlock
ReleaseResource

PyMac_GetFullPathname
FSpMakeFSRef
FSMakeFSSpec
FSpMakeFSRef
FSRefMakePath

I think these two functions can safely be refactored so that their
functionality comes from elsewhere. Realistically, both of these
functions could probably be written in Python anyway (it sure sounds
like PyMac_GetFullPathname should be due to the comments)

@etrepum
Copy link
Mannequin Author

etrepum mannequin commented Sep 27, 2004

Logged In: YES
user_id=139309

See patch at http://python.org/sf/1035255

@brettcannon
Copy link
Member

Logged In: YES
user_id=357491

Fixed by patch bpo-1035255.

1 similar comment
@brettcannon
Copy link
Member

Logged In: YES
user_id=357491

Fixed by patch bpo-1035255.

@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
Projects
None yet
Development

No branches or pull requests

2 participants