UIP icon indicating copy to clipboard operation
UIP copied to clipboard

Automatically install pygobject for linux users

Open abhay-raizada opened this issue 8 years ago • 12 comments

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?

abhay-raizada avatar Dec 04 '16 04:12 abhay-raizada

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?

pandusonu2 avatar Dec 04 '16 11:12 pandusonu2

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 avatar Dec 29 '16 10:12 nkprince007

@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.

nkprince007 avatar Dec 29 '16 10:12 nkprince007

@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 avatar Dec 29 '16 10:12 abhay-raizada

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

abhay-raizada avatar Dec 29 '16 10:12 abhay-raizada

Couldn't we use the pre-existent version?

nkprince007 avatar Dec 29 '16 10:12 nkprince007

@nkprince007 we do that now :D

abhay-raizada avatar Dec 29 '16 10:12 abhay-raizada

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

nkprince007 avatar Dec 29 '16 11:12 nkprince007

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

abhay-raizada avatar Dec 29 '16 11:12 abhay-raizada

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

nkprince007 avatar Dec 29 '16 11:12 nkprince007

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

abhay-raizada avatar Dec 29 '16 11:12 abhay-raizada

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

nkprince007 avatar Dec 29 '16 11:12 nkprince007