quarkslab / irma-brain

IRMA brain
21 stars 4 forks source link

Installation issues #3

Closed archey closed 10 years ago

archey commented 10 years ago

I am a developer for the ArchAssault project and we are trying to add this to our repo, but it does not appear to be packaged correctly through setup.py.

I have followed the instructions here https://github.com/quarkslab/irma-brain/blob/master/docs/brain/install.rst

It creates a filestructure like so: brain config docs extras irma_brain_app-1.1.0-py2.7.egg-info MANIFEST.in requirements.txt scripts setup.cfg setup.py

Shouldnt these be under /usr/lib/python_versio/site-packages or dist-packages if your one debian in a irma-brian folder. It seems that irma-{brian,probe,frontend} all install this way. Correct me if I am wrong, but how is the user supposed to use this application.

kamino commented 10 years ago

Hi archey,

The instructions for pip installs everything in the directory you specified and nothing in site-packages or dist-packages. It was a design choice to do it this way that may changes in the future, but at the moment, you have to type a complex pip command. We did not want IRMA libraries interfere with system applications, mainly for upgrade issues. Installing with pip has the same effect as cloning the repository into the directory of your choice, thus you should consider only cloning the repositories in the installation folder.

A cleaner way to install IRMA (with virtual environment) is described in https://github.com/quarkslab/irma-ansible. You should look at it until we update the documentation to the lastest release (which drops support for debian packages).

The ansible roles that may be useful for you are roles/quarkslab.irmaprovisioning{frontend, brain, probe} and roles/quarkslab.irmaprovisioning{frontend, brain, probe}.

To understand how the user is supposed to use IRMA, you can test the installation especially made for a workshop we did last week: https://github.com/quarkslab/irma-ansible/tree/HiTB. The slides are available online: goo.gl/XGJAGt. Basically, the automation scripts install and configures IRMA in less than 30 minutes.

Do not hesitate to give us feedbacks.

Thanks,

archey commented 10 years ago

Thanks I'll look into it, we are arch based so the files would install under /usr/lib/pythonversion/site-pacakges however to your config we wil certainly toss them under /usr/share/irma-brain and so forth. The anisble config might be a good example of how to pacakge it. Thanks for reponding, I'll look into this somemore and let you know what I find out.

ch0k0bn commented 10 years ago

I close this issue. If you encounter any problems with ansible or manual install don't hesitate to open a new one.