NITDgpOS / UIP

A library, to customize your desktop wallpapers.
https://nitdgpos.github.io/projects/UIP
GNU Affero General Public License v3.0
19 stars 45 forks source link

Automatically install pygobject for linux users #176

Open abhay-raizada opened 7 years ago

abhay-raizada commented 7 years ago

1.Download from source maybe keep our own file here 2.Automatic extract 3.Run setup.py install automatically.

or maybe we can upload our own version on pypi

CC @pandusonu2 maybe you could throw some light on this issue? if this is the right way to go?

pandusonu2 commented 7 years ago

I think arch users will have better idea about this. As in Arch, the software is downloaded right from the source and installed. So @ghoshbishakh @nkprince007 Any idea?

nkprince007 commented 7 years ago

I suppose we could use subprocess in setup.py and write up an install script on Makefile. But, I guess we'd have to check distro wise for the install.

nkprince007 commented 7 years ago

@abhsag24 Please comment on the different distros we'd be supporting.

I'm thiniking of debian and arch based ones as of now. Need specifics on gentoo, openSUSE, fedora etc.

abhay-raizada commented 7 years ago

@nkprince007 Fedora as well. Also we have a setup script in the code that installs pygobject in a virtual environment, maybe we should run UIP in a virtual environment only?

abhay-raizada commented 7 years ago

because pygobject almost always conflicts with the already installed version, as its a dependency on most DE's

nkprince007 commented 7 years ago

Couldn't we use the pre-existent version?

abhay-raizada commented 7 years ago

@nkprince007 we do that now :D

nkprince007 commented 7 years ago

Okay, how about testing the pre-existence and installing as necessary?

abhay-raizada commented 7 years ago

we can do that. We can also just use venv :P , we have packages conflicting anyway it'd save everyone som much time if we create a venv in the make instead and no one has to worry about anything

nkprince007 commented 7 years ago

But, that'd cause us to use venv everytime to run UIP. That's not the safe way to do it, I feel.

abhay-raizada commented 7 years ago

@nkprince007 that could be a part of the entry script right? activate venv , then carry on?

nkprince007 commented 7 years ago

Nope, entry script couldn't do that as no extrinsic link exists between our package and usr/lib installation of python sitepackages.