https://bugzilla.wikimedia.org/show_bug.cgi?id=55126

       Web browser: ---
            Bug ID: 55126
           Summary: Version.py output differs if pywikibot is installed
           Product: Pywikibot
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General
          Assignee: pywikipedia-b...@lists.wikimedia.org
          Reporter: legoktm.wikipe...@gmail.com
    Classification: Unclassified
   Mobile Platform: ---

Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1661/
Reported by: mineoo
Created on: 2013-08-29 10:06:12.502000
Subject: Version.py output differs if pywikibot is installed
Original description:
    (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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to