klintkrossa
Posts: 81
Joined: Tue Nov 10, 2015 3:06 pm

last part of a batch loader

Fri Mar 17, 2017 3:11 pm

Hello,
I am trying to make an auto python3 import loader. It is getting biger by the moment.
I am batch loading them.
I have it running through a system(“sudo apt-get install %s” % X) if it did not find “X” then it look for it in system(‘pip3 install %s’ % X).
The next step is to manually install it.
Let’s say that I was looking for PyPipboyApp.
It on github.
This particular program is not out of alpha at this point.
Is there a way for python3 to “look” through ghihub for https://github.com/matzman666/PyPipboyApp?
Then give a return that can be used in
chdir(myhome)
system(‘sudo wgit clone https://github.com/matzman666/PyPipboyApp’)
chdir(X)
system(‘make’)
system(‘sudo make install’)

Klint
PS. PyPipboyApp is just an example.
Thanks
This is not like any other bulletin boards that I have been on. Been flamed on other BB's so bad I was afraid to ask.

All my Raspberry Pi's are like the Hessian artilleryman of Sleepy Hollow.

User avatar
paddyg
Posts: 2541
Joined: Sat Jan 28, 2012 11:57 am
Location: UK

Re: last part of a batch loader

Fri Mar 17, 2017 10:28 pm

You could probably run the github search url and sift out the stuff you want from the response. A parsing system like https://www.crummy.com/software/BeautifulSoup/ would help. Not trivial though as you will get lots of forks for many modules.
also https://groups.google.com/forum/?hl=en-GB&fromgroups=#!forum/pi3d

Return to “Python”