[issue31713] python3 python-config script generates invalid includes

2020-11-27 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> "python-config --includes" returns a wrong path (double prefix)

___
Python tracker 

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



[issue31713] python3 python-config script generates invalid includes

2017-10-06 Thread matthewlweber

Change by matthewlweber :


--
keywords: +patch
Added file: 
https://bugs.python.org/file47195/0029-python-config.sh-don-t-reassign-prefix.patch

___
Python tracker 

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



[issue31713] python3 python-config script generates invalid includes

2017-10-06 Thread matthewlweber

New submission from matthewlweber :

Related to https://bugs.python.org/issue22907

If building in a path that starts with /usr, the includedir=$(echo 
"@includedir@" | sed "s#^$prefix_build#$prefix_real#") assignment in the 
python-config.sh ends up having the path it processes ran through a path 
substitution once before this line is executed because the @includedir@ in the 
python-config.sh.in is set to the string '${prefix}/include'.  ${prefix} is 
assigned just above includedir in python-config.sh to prefix=$(echo 
"$prefix_build" | sed "s#^$prefix_build#$prefix_real#")

I believe we need to update the includedir to 

includedir=$(echo "@includedir@")

Or rename the prefix variable in python-config.sh so that there isn't a naming 
conflict if a string is passed in via @includedir@ with that variable.

Without fixing this you end up with multiple /usr substitutions in the 
includedir string, each replaced with the real path.  ie resulting in an 
invalid path.

--
components: Cross-Build
messages: 303819
nosy: Alex.Willmer, matthewlweber
priority: normal
severity: normal
status: open
title: python3 python-config script generates invalid includes
versions: Python 3.4

___
Python tracker 

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