Xqt added a comment.

  pwb code entry point was introduced in release 7.0.0 with rPWBC68f381a 
<https://phabricator.wikimedia.org/rPWBC68f381a435dd99b0c059da5113141798aa5d897f>.
 No scripts were supported with previous releases as a site-package 
installation, neither pwb.py, the generate_*.py scripts nore even version.py. 
The current packaging collects all files inside the pywikibot folder but the 
pwb.py wrapper is outside of this scope. Therefore the make_dist.py 
<https://doc.wikimedia.org/pywikibot/master/utilities/install.html#module-make_dist>
 script was added which copies the wrapper script into the pywikibot directory, 
creates the distribution and cleanups the copied file(s).
  
  There are two ways to solve this task:
  
  1. Add a documentation hint to the documentation not to install a pywikibot 
site-package diectly from a repository but use make_dist script instead. That 
would be ok to install from a local checkout but fails when installing from a 
remote git repository.
  2. move the pwb.py script to the pywikibot/scripts folder (as well as a 
minimal i18n pywikibot translation file) and add a caller script to the main 
root like (code snippet from pwb.exe entry point):
  
    import sys
    from pywikibot.scripts.pwb import main
    if __name__ == '__main__':
        sys.exit(main())

TASK DETAIL
  https://phabricator.wikimedia.org/T320851

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: Xqt, Aklapper, pywikibot-bugs-list, JJMC89, PotsdamLamb, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to