Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"make install" equivalent for i-pi #2

Open
ltalirz opened this issue Jul 22, 2019 · 3 comments
Open

"make install" equivalent for i-pi #2

ltalirz opened this issue Jul 22, 2019 · 3 comments

Comments

@ltalirz
Copy link
Member

ltalirz commented Jul 22, 2019

Hi @venkatkapil24 ,

as part of an effort to make our ansible roles more "standard", I'm transforming the roles for codes such that they install the codes directly to the /usr/local/ prefix by default (so that all users of the VM/server can use them).

By convention, this is usually achieved by a ./configure --prefix=/usr/local, followed by make; make install.
I notice that i-pi does not seem to have such a mechanism (?)

So, I'm wondering: is it enough to simply copy the driver.x executable to /usr/local/bin/ or do I need to do more?

By the way, it might make sense to call this executable something more specific than driver.x.

@ltalirz
Copy link
Member Author

ltalirz commented Jul 22, 2019

ah sorry, now I realize that it should actually be the files in the /bin/ directory, correct?
I.e. cp i-pi/bin/* /usr/local/bin/

@ltalirz
Copy link
Member Author

ltalirz commented Jul 22, 2019

In this case I'm getting

$ i-pi
Traceback (most recent call last):
  File "/usr/local/bin/i-pi", line 30, in <module>
    from ipi.utils.softexit import softexit
ImportError: No module named ipi.utils.softexit

so I guess, now, sourcing the env script becomes necessary?

See branch global-install

@venkatkapil24
Copy link
Collaborator

Yeah, the base directory of i-pi should be added to PYTHONPATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants