[bugs:#1661] Version.py output differs if pywikibot is installed

Status: open
Created: Thu Aug 29, 2013 10:06 AM UTC by Wieland Hoffmann
Last Updated: Thu Aug 29, 2013 10:06 AM UTC
Owner: nobody

(bot-venv)mineo@rika:~/pywikipediabot$ pip uninstall Pywikipediabot
Uninstalling Pywikipediabot:
  /home/mineo/bot-venv/lib/python2.6/site-packages/Pywikipediabot-2.0b1-py2.6.egg
Proceed (y/n)? y
  Successfully uninstalled Pywikipediabot
(bot-venv)mineo@rika:~/pywikipediabot$ PYTHONPATH=. python scripts/version.py 
Pywikibot: [https] git/pywikibot/core (r1995, fa7a248, 2013/08/28, 22:33:44, ok)
Release version: 2.0b1
Python: 2.6.5 (r265:79063, Oct  1 2012, 22:04:36) 
[GCC 4.4.3]
unicode test: ok
(bot-venv)mineo@rika:~/pywikipediabot$ python setup.py install
[ snip ]
(bot-venv)mineo@rika:~/pywikipediabot$ PYTHONPATH=. python scripts/version.py 
Pywikibot: pywikibot/__init__.py (r-1 (unknown), 414550d, 2013/08/29, 10:00:14, OUTDATED)
Release version: 2.0b1
Python: 2.6.5 (r265:79063, Oct  1 2012, 22:04:36) 
[GCC 4.4.3]
unicode test: ok
(bot-venv)mineo@rika:~/pywikipediabot$ cd scripts/
(bot-venv)mineo@rika:~/pywikipediabot/scripts$ python version.py 
Pywikibot: pywikibot/__init__.py (r-1 (unknown), 414550d, 2013/08/29, 10:00:14, OUTDATED)
Release version: 2.0b1
Python: 2.6.5 (r265:79063, Oct  1 2012, 22:04:36) 
[GCC 4.4.3]
unicode test: ok
(bot-venv)mineo@rika:~/pywikipediabot/scripts$ cd ~/bot-venv/lib/python2.6/site-packages/Pywikipediabot-2.0b1-py2.6.egg/scripts/
(bot-venv)mineo@rika:~/bot-venv/lib/python2.6/site-packages/Pywikipediabot-2.0b1-py2.6.egg/scripts$ python version.py
Pywikibot: pywikibot/__init__.py (r-1 (unknown), 414550d, 2013/08/29, 10:00:14, OUTDATED)
Release version: 2.0b1
Python: 2.6.5 (r265:79063, Oct  1 2012, 22:04:36) 
[GCC 4.4.3]
unicode test: ok
(bot-venv)mineo@rika:~/bot-venv/lib/python2.6/site-packages/Pywikipediabot-2.0b1-py2.6.egg/scripts$ cd ..
(bot-venv)mineo@rika:~/bot-venv/lib/python2.6/site-packages/Pywikipediabot-2.0b1-py2.6.egg$ PYTHONPATH=. python scripts/version.py 
Pywikibot: pywikibot/__init__.py (r-1 (unknown), 414550d, 2013/08/29, 10:00:14, OUTDATED)
Release version: 2.0b1
Python: 2.6.5 (r265:79063, Oct  1 2012, 22:04:36) 
[GCC 4.4.3]
unicode test: ok

It seems like you either get a commit identifier (fa7a248) or the hash of a git object (414550d) as the version number.


Sent from sourceforge.net because Pywikipedia-bugs@lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.