classification
Title: distutils is silent about multiple -I/-L/-R
Type: enhancement Stage: needs patch
Components: Distutils Versions: Python 3.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: eric.araujo Nosy List: dstufft, eric.araujo, tarek
Priority: normal Keywords: easy

Created on 2005-12-02 16:20 by skip.montanaro, last changed 2014-08-04 15:05 by ezio.melotti.

Messages (4)
msg60842 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2005-12-02 16:20
GCC (actually, most compilers I think) allows you to
specify -L, -I and -R multiple times.  In contrast,
distutils expects on of them with a colon-separated
list of directories.  It only pays attention to the
last one of any of those three flags.  I've been bitten
by this difference a couple times in recent weeks.

It seems that distutils should warn when any of these
flags are given multiple times or (better yet) should
conform more to common compiler usage and allow them to
be given multiple times, collecting all values together
in a list.
msg117695 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2010-09-30 02:18
+1 on handling those options like gcc in distutils2.

+1 on printing warnings in distutils1, but I don’t know if it could break third-party code, so Tarek will accept or reject.
msg119375 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2010-10-22 09:43
Skip, do you agree with my proposal (no behavior change in d1, better behavior in d2) or do you think it could be confusing?
msg119388 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2010-10-22 14:39
I would prefer the gcc-like behavior.  I realize there
are constraints on making changes in distutils1, so what
you propose sounds fine to me.
History
Date User Action Args
2014-08-04 15:05:30ezio.melottisetversions: - Python 2.7, Python 3.4
2014-06-27 21:30:41BreamoreBoysetnosy: + dstufft

components: - Distutils2
versions: + Python 3.4, Python 3.5, - 3rd party, Python 3.1, Python 3.2
2011-01-19 17:58:59eric.araujosetkeywords: + easy
assignee: tarek -> eric.araujo
nosy: tarek, eric.araujo
2010-10-22 14:40:21skip.montanarosetnosy: - skip.montanaro
2010-10-22 14:39:48skip.montanarosetnosy: + skip.montanaro
messages: + msg119388
2010-10-22 09:43:07eric.araujosetmessages: + msg119375
2010-09-30 02:18:49eric.araujosetnosy: tarek, eric.araujo
messages: + msg117695
components: + Distutils
versions: + Python 3.1, Python 2.7, Python 3.2
2010-09-30 02:16:24eric.araujosetmessages: - msg107248
2010-09-30 02:16:16eric.araujosetversions: + 3rd party, - Python 2.6, Python 2.5, Python 3.1, Python 2.7, Python 3.2
2010-08-14 05:13:50eric.araujosetassignee: tarek
versions: + Python 2.6, Python 2.5, Python 3.1, Python 2.7
nosy: tarek, eric.araujo
components: + Distutils2, - Distutils
stage: needs patch
2010-08-07 18:11:48terry.reedysetversions: + Python 3.2, - Python 2.6, Python 3.0, Python 3.1, Python 2.7
2010-06-06 22:40:04eric.araujosetnosy: + eric.araujo
messages: + msg107248
2010-05-20 20:26:13skip.montanarosetnosy: - skip.montanaro
2009-02-05 16:34:13akitadasetnosy: + tarek
type: enhancement
versions: + Python 2.6, Python 3.0, Python 3.1, Python 2.7, - Python 2.5
2005-12-02 16:20:34montanaro.historiccreate