Issue 1019715: distutils ignores configure's --includedir (original) (raw)

Issue1019715

Created on 2004-08-31 14:37 by josephwinston, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg60561 - (view) Author: Joseph Winston (josephwinston) Date: 2004-08-31 14:37
1. configure and build python using the --includedir option. For example: $ configure --prefix=/TANGO/3/rel --includedir=/TANGO/3/rel/inc 2. Run $ make install 3. Notice that the include files are placed in /TANGO/3/rel/include not /TANGO/3/rel/inc. 4. Verify with $ python -c 'from distutils.sysconfig import *;print get_python_inc() 5. The problem is that get_python_inc() hard codes the include file path to use the name "include" 6. Other programs using distutils will fail since the INSTALL_SCHEMES found in install.py also have the name "include" hard coded. 7. Suggested fix would be to use --includedir to calculate the include path used by distutils.
msg81098 - (view) Author: Akira Kitada (akitada) * Date: 2009-02-03 21:21
I'm having the same problem. This is a real headache, especially on systems that run both 32-bit and 64-bit apps, where I often see "lib64", "include64" and "bin64". In my opinion, lib, include and bin shouldn't be hard-coded in anywhere. Note that these hard-coded paths are found in other places, too. See http://bugs.python.org/issue1294959 for further detials.
msg92542 - (view) Author: Akira Kitada (akitada) * Date: 2009-09-12 12:46
I think this is duplicate of .
msg92608 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2009-09-14 13:11
Yes, this is a duplicate of and tarek is assigned to that one too.
History
Date User Action Args
2022-04-11 14:56:06 admin set github: 40847
2010-08-11 05:49:28 eric.araujo set superseder: Use directories from configure rather than hardcoded
2009-09-14 13:11:09 orsenthil set status: open -> closednosy: + orsenthilmessages: + resolution: duplicate
2009-09-12 12:46:36 akitada set messages: +
2009-03-10 17🔞04 matejcik set nosy: + matejcik
2009-02-04 16:42:41 akitada set type: behavior
2009-02-04 16:34:58 tarek set assignee: tarekversions: + Python 2.6, Python 3.0, Python 3.1, Python 2.7
2009-02-03 21:21:04 akitada set nosy: + tarek, akitadamessages: +
2004-08-31 14:37:25 josephwinston create