Page 1 of 1

HPC Install w/o Admin

Posted: Wed Nov 13, 2019 1:15 am
by aaronwb7
Hi,

Is there a way to install serpentTools 0.8.0 in a personal directory without administrative privileges? Essentially, I would like to setup the classes and functions in a local/personal manner and just call them as if I had written and placed them there myself so that I do not have to get an HPC admin to create a global library of it.

Thanks,
Aaron Burkhardt

Re: HPC Install w/o Admin

Posted: Wed Nov 13, 2019 3:43 am
by drewejohnson
Hi Aaron,
You should be able to install in an almost identical manner on the HPC, using

Code: Select all

pip install --user serpentTools
If you are using the develop version, there are two ways. First, with the setup script:

Code: Select all

python setup.py install --user
or as an editable "development" version with

Code: Select all

pip install --user -e .
Note these last two must take place in the source code directory, e.g. where setup.py is found.

With the latter, I've found that the commands --no-deps and --prefix <dir> commands are helpful if your system has conflicting package versions (something we're working on). The command

Code: Select all

pip install --user --prefix=/path/to/home/.local --no-deps -e .
should work.

Please let me know what you end up going with and how it works. Cheers,
Andrew

Re: HPC Install w/o Admin

Posted: Wed Nov 13, 2019 7:36 pm
by aaronwb7
So we had to upgrade pip to 19.3.1.

Then,

Code: Select all

pip3 install --user -e
works for each user.