I think https://pypi.python.org/pypi/internetarchive would be useful to many, in Tools. BUB uses it, for instance.
Description
Related Objects
- Mentioned Here
- T91874: Reduce amount of Tools-local packages
Event Timeline
I think we should reduce the amount of self-built python packages installed on toollabs (see T91874). Using a virtualenv should be the preferred solution.
Well I trust whatever is your recommendation on the process to follow, I just filed this task as suggested by https://wikitech.wikimedia.org/wiki/Help:Tool_Labs . Please update docs with whatever method is preferred, I'm quite clueless about it.
@yuvipanda Nemos problem is actually that trusty has no pip installed (precise had): https://wikitech.wikimedia.org/wiki/Help_talk:Tool_Labs/Python_application_stub
(virtualenv may be a bit overwhelming for users which only need pip install --user somepackage
@Nemo_bis Yuvi is basically asking you to run:
virtualenv ~/env source $HOME/env/bin/activate echo "source $HOME/env/bin/activate" >> .bashrc pip install internetarchive
Thanks both.
Can you add to the help page, please? As for myself, I've solved using easy_install --user; but people often need a quick way to import an additional package or two.
I've added it to https://wikitech.wikimedia.org/wiki/Help:Tool_Labs#My_tool_requires_a_package_that_is_not_currently_installed_in_Tool_Labs._How_can_I_add_it.3F
I'm not sure what to do with https://wikitech.wikimedia.org/wiki/Help:Tool_Labs/Python_application_stub, it mainly only has a link to a flask stub app and outdated information that already is elsewhere.
https://merlijn.vandeen.nl/2015/flask-mwoauth-on-tools.html has good
info on setting up a flask app.