[issue32429] Outdated Modules/Setup warning is invisible

2018-11-14 Thread Julien Palard


Julien Palard  added the comment:

Fixed in 961d54c5c1916c09883ebcf7191babc969e5a5cf.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue32429] Outdated Modules/Setup warning is invisible

2018-01-19 Thread STINNER Victor

STINNER Victor  added the comment:

> I'm ok with turning the warning into an error. Does anyone object here?

Please don't convert the warning to an error. Usually, I ignore the warning and 
"make" produces a working ./python binary anyway.

It's common that I get the warning when using git bisect, since it updates 
Modules/Setup.dist.

If you want to make it an error, I would prefer to have an option to "ignore 
the warning", like always copy Modules/Setup.dist to Modules/Setup (if it's 
detected as outdated).

I like Xavier's proposal (msg309078): only create Modules/Setup if you want to 
customize it, otherwise use Modules/Setup.dist. I *never* modified 
Modules/Setup, I don't even know its purpose, whereas it bugs me frequently 
with it's annoying warning...

It seems like I would prefer to see bpo-32430 fixed.

--
nosy: +vstinner

___
Python tracker 

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



[issue32429] Outdated Modules/Setup warning is invisible

2017-12-29 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

I'm ok with turning the warning into an error. Does anyone object here?

--

___
Python tracker 

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



[issue32429] Outdated Modules/Setup warning is invisible

2017-12-27 Thread Julien Palard

Julien Palard  added the comment:

Discussion about further simplifications goes here: 
https://bugs.python.org/issue32430

--

___
Python tracker 

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



[issue32429] Outdated Modules/Setup warning is invisible

2017-12-27 Thread Xavier de Gaye

Xavier de Gaye  added the comment:

It seems that it is possible to keep the current behavior for those that want 
to customize the configuration of Modules/Setup.dist (knowing that they can 
just use Modules/Setup.local if they are only doing additions to the Setup 
configuration) and at the same time get rid of these warnings for those that 
never change Modules/Setup.dist. This could be done this way:

* 'configure' does not create anymore Modules/Setup.
* The 'Makefile' target of the Makefile uses now Modules/Setup.dist when 
Modules/Setup is missing.
* A developer that wants to customize Modules/Setup.dist needs to copy (only 
once) manually Modules/Setup.dist to Modules/Setup and to modify this last file 
accordingly. She/he gets then the same warnings as those that are occuring 
currently and in that case it is useful to have the build abort upon such 
warnings as proposed in the current issue.

If this proposal is acceptable then it should be implemented in another issue, 
I think.

--

___
Python tracker 

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



Re: [issue32429] Outdated Modules/Setup warning is invisible

2017-12-27 Thread M.-A. Lemburg
On 27.12.2017 00:24, Antoine Pitrou wrote:
> 
> Antoine Pitrou  added the comment:
> 
>> +1 - do you have any thoughts on that?
> 
> I think the current scheme may have been useful at a time where DVCS didn't 
> exist.  You would maintain an unversioned copy of Modules/Setup.dist in your 
> work-tree.  Nowadays you can fork a github repo and maintain your own branch 
> with changes to a tracked file.  I don't think Modules/Setup deserves special 
> treatment compared to, say, setup.py or Makefile.pre.in.

The file is mostly meant for people using tar balls rather than
checkouts to give them an easy way back to default settings
after making changes to the Modules/Setup file.

The same could be had by having Makefile.pre.in generate Setup.dist
from Setup while booting into build mode, avoiding the need to
sometimes create Modules/Setup manually.

-- 
Marc-Andre Lemburg
eGenix.com

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



[issue32429] Outdated Modules/Setup warning is invisible

2017-12-26 Thread Julien Palard

Julien Palard  added the comment:

> maintain your own branch with changes to a tracked file

Make sense for me, Xavier, would this fit your usage?

--

___
Python tracker 

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



[issue32429] Outdated Modules/Setup warning is invisible

2017-12-26 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> +1 - do you have any thoughts on that?

I think the current scheme may have been useful at a time where DVCS didn't 
exist.  You would maintain an unversioned copy of Modules/Setup.dist in your 
work-tree.  Nowadays you can fork a github repo and maintain your own branch 
with changes to a tracked file.  I don't think Modules/Setup deserves special 
treatment compared to, say, setup.py or Makefile.pre.in.

--

___
Python tracker 

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



[issue32429] Outdated Modules/Setup warning is invisible

2017-12-26 Thread Julien Palard

Julien Palard  added the comment:

Antoine: I may take a look at this too.

Still, stopping in the Makefile looks a first trivial step toward not being 
screwed by it, removing it looks non trivial, will raise discussions, let's 
make it another issue?

--

___
Python tracker 

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



[issue32429] Outdated Modules/Setup warning is invisible

2017-12-26 Thread Barry A. Warsaw

Barry A. Warsaw  added the comment:

On Dec 26, 2017, at 18:17, Antoine Pitrou  wrote:
> 
> I'd really like it if we could get rid of the Setup/Setup.dist thing.  It's a 
> distraction to have to type `cp -f Modules/Setup.dist Modules/Setup` from 
> time to time... even though I have never customized the Setup file.

+1 - do you have any thoughts on that?

--

___
Python tracker 

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



[issue32429] Outdated Modules/Setup warning is invisible

2017-12-26 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

I'd really like it if we could get rid of the Setup/Setup.dist thing.  It's a 
distraction to have to type `cp -f Modules/Setup.dist Modules/Setup` from time 
to time... even though I have never customized the Setup file.

--
nosy: +barry, benjamin.peterson, pitrou

___
Python tracker 

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



[issue32429] Outdated Modules/Setup warning is invisible

2017-12-26 Thread Julien Palard

Change by Julien Palard :


--
keywords: +patch
pull_requests: +4905
stage:  -> patch review

___
Python tracker 

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



[issue32429] Outdated Modules/Setup warning is invisible

2017-12-26 Thread Julien Palard

New submission from Julien Palard :

The devguide advise to run `make -j`, why not, but in any cases between `make 
-j4` and `make -j` the warning:

---
Modules/Setup.dist is newer than Modules/Setup;
check to make sure you have all the updates you
need in your Modules/Setup file.
Usually, copying Modules/Setup.dist to Modules/Setup will work.
---

is invisible (gets on screen first, and get kicked real quick by the 
compilation lines).

This got me once, and I'm not alone: https://bugs.python.org/issue32335 (And I 
suspect we're more than just two).

I propose to make this stop the compilation, proposing two cases:

- You modified the file? Touch it so it gets seen as up to date by makefile
- You didn't modified it? Copy Modules/Setup.dist to Modules/Setup

Something like:

$ make
---
Modules/Setup.dist is newer than Modules/Setup;
check to make sure you have all the updates you
need in your Modules/Setup file.
Usually, copying Modules/Setup.dist to Modules/Setup will work.
Or if you want to keep your modifications, touch Modules/Setup
to skip this warning.
---
Makefile:703: recipe for target 'Modules/Setup' failed
make: *** [Modules/Setup] Error 1

--
assignee: mdk
components: Build
messages: 309066
nosy: mdk, xdegaye
priority: low
severity: normal
status: open
title: Outdated Modules/Setup warning is invisible
type: enhancement
versions: Python 2.7, Python 3.6, Python 3.7

___
Python tracker 

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