I've made this thread so people can post their package installer scripts here :)
I am currently working on the networkx installer. Going to post here after it is complete.
I've made this thread so people can post their package installer scripts here :)
I am currently working on the networkx installer. Going to post here after it is complete.
Okay, I made a repo for all my installers, with networkx-installer.py already working :)
Repo is here: https://github.com/Vik2015/pythonista-installers/tree/master
Install any Python wheel from PyPI:
I added these two to Pythonista-Tools: https://github.com/Pythonista-Tools/Pythonista-Tools/blob/master/Pypi%20Modules.md
Are there other PyPI installers?
@ccc, I think I am going to write nltk installer if I have time :)
@ccc Thanks!
I've been toying with a distutils pythonista version that uses a modules setup.py to load all modules to the site-packages and then grab any dependencies. with shellista pipista, extract and run thier setup.py.
Briar. -One note (I've been updating pipista v2 to get pypi_install working... Which it now does, but there is some funny magic going on that does bad things to shellista), disttools.core.run_setup doesn't work if the setup script has imports. Setuptools.sandbox.run_setup does.
@JonB I'm taking a hackish approach. I cant get distutils.core to work correctly. However all the info that's needed is passed in setup(). I'm removing imports from setup.py and inserting a modified setup() that installs the listed packages to site-packages then uses pipista to grab any dependencies and installs them.
NLTK installer is here!
I hope it is working okay. After installing NLTK using it I managed to download tokenizers and parse some English :)
Link to the script: https://github.com/Vik2015/pythonista-installers/blob/master/nltk-installer.py
Added pychievements installer (as requested by @tjferry14) and a one-file library pypi. It can be dowloaded from the same repo where installers live. Make sure you have it installed, as I've updated all the installers to use this library (and consume less code)