[issue44182] python-config.sh vs python-config.py inconsistency

2021-10-04 Thread Isuru Fernando


Change by Isuru Fernando :


--
keywords: +patch
pull_requests: +27071
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/28725

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44182] python-config.sh vs python-config.py inconsistency

2021-10-04 Thread STINNER Victor


STINNER Victor  added the comment:

Maybe unit tests can be written on python-config.sh and python-config.py 
commands.

--
nosy: +vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44182] python-config.sh vs python-config.py inconsistency

2021-10-03 Thread Ned Deily


Ned Deily  added the comment:

> If you want, I can send a PR.

Thanks, that would be good. Embedding is something we currently don't really 
test, unfortunately. Off the top of my head, I'm not sure how feasible it would 
be to add some tests for embedding, especially given the range of 
configurations we support but something would be better than nothing.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44182] python-config.sh vs python-config.py inconsistency

2021-10-03 Thread Isuru Fernando


Isuru Fernando  added the comment:

Agree that this should be fixed. If you want, I can send a PR.

--
nosy: +isuruf

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44182] python-config.sh vs python-config.py inconsistency

2021-05-19 Thread Ned Deily


Change by Ned Deily :


--
components: +macOS
nosy: +ned.deily, ronaldoussoren

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44182] python-config.sh vs python-config.py inconsistency

2021-05-19 Thread Todd C. Miller


New submission from Todd C. Miller :

There is an inconsistency between python-config.py and python-config.sh with 
the output of --ldflags.  The .sh version include -L$libdir but the .py version 
does not include the -L flag unless a non-shared version of Python is built.

As a result, on Darwin (macOS), where python-config.py is used it is not 
possible to use python-config to get the correct linker flags when 
"python-config --embed --ldflags" is run if Python is installed in a directory 
with a lib dir that is not in the compiler's default search path.

For example, if Python is installed in /usr/local/python, we see the following 
on Linux (using python-config.sh):

$ python3-config --ldflags --embed
 -L/usr/local/python/lib -lpython3.10 -lcrypt -lpthread -ldl  -lutil -lm -lm

But on macOS, using python-config.py:

$ python3-config --ldflags --embed
-lpython3.10 -lintl -ldl -framework CoreFoundation

There is no -L flag to tell the compiler where to find the python3.10 library, 
so an attempt to link with it will fail.

--
components: Installation
messages: 393985
nosy: millert
priority: normal
severity: normal
status: open
title: python-config.sh vs python-config.py inconsistency
versions: Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com