Issue 14352: Distutils2: add logging message to report successful installation (original) (raw)

Created on 2012-03-17 19:55 by alex.gronholm, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
d2log.txt alex.gronholm,2012-03-17 19:55 Full installation log
Messages (7)
msg156196 - (view) Author: Alex Grönholm (alex.gronholm) * Date: 2012-03-17 19:55
Running distutils2 hg tip (changeset 2cec52b682a9): The command "pysetup install" fails with: u'Python': u'2.7.2+' is not a valid version (field 'Version') Not that it should matter, but this is Ubuntu 11.10. Also, distutils2 installs fine using setup.py.
msg156211 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012-03-17 23:30
Your log file seems to tell that the installation goes fine. The last message is just a warning. So what makes you say that d2 doesn’t install?
msg156212 - (view) Author: Alex Grönholm (alex.gronholm) * Date: 2012-03-17 23:33
Being new to d2, I wouldn't know that the installation was completed successfully or if there was something left out. Regardless, this needs to be fixed.
msg156213 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012-03-17 23:35
I would agree, if you told me *what* needs to be fixed :) First, the unhelpful warning will go (that’s another bug); second, would you be satisfied if I added a logging message to tell that the installation completed successfully? The tradition of unix command-line applications is to say nothing if everything goes fine, but if we’re not working in quiet mode then a final logging message would be better.
msg156214 - (view) Author: Alex Grönholm (alex.gronholm) * Date: 2012-03-17 23:38
It doesn't say "Warning" there, so how was I supposed to determine that it's not an error which terminated the installation process? If it is indeed just a warning, just getting rid of it would fix this for me. However, will this cause trouble with "requires-python" in setup.cfg?
msg156215 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012-03-17 23:44
> It doesn't say "Warning" there Right, so that’s a problem with our logging config. > However, will this cause trouble with "requires-python" in setup.cfg? I’m not sure why you’re asking that, as d2’s setup.cfg does not use requires-python and does produce the warning, so it’s unrelated. (The warning comes from d2.database.)
msg156217 - (view) Author: Alex Grönholm (alex.gronholm) * Date: 2012-03-17 23:50
> I’m not sure why you’re asking that, as d2’s setup.cfg does not use requires-python and does produce the warning, so it’s unrelated. (The warning comes from d2.database.) I was concerned that maybe the version comparator would barf on a version like 2.7.2+ and refuse to process the "requires-python" directive, but if you say this is not the case then I'll just leave it at that.
History
Date User Action Args
2022-04-11 14:57:28 admin set github: 58560
2014-03-13 02:31:54 eric.araujo set status: open -> closedresolution: out of datestage: resolved
2012-03-17 23:50:16 alex.gronholm set messages: +
2012-03-17 23:44:32 eric.araujo set messages: + title: Distutils2 won't install on Ubuntu -> Distutils2: add logging message to report successful installation
2012-03-17 23:38:23 alex.gronholm set messages: +
2012-03-17 23:35:22 eric.araujo set messages: +
2012-03-17 23:33:05 alex.gronholm set messages: +
2012-03-17 23:30:07 eric.araujo set messages: + versions: + 3rd party
2012-03-17 19:55:49 alex.gronholm create