I have what is probably a pretty basic question, but I haven't found either
clear guidance in the documentation, or examples in the repository.
Can you set up a PythonBundle or similar EasyConfig to do _just_ the "pip
install" or "python setup.py install" action, pointing it to an already
locally set up directory?
I would not expect to find an example EasyConfig for this, since it is
obviously site-specific.
My use case involves Matlab, which is treated as an EXTERNAL_MODULE on our
site (Texas A&M HPRC). The installation includes a nice Python "engine" so
we can access Matlab from, for example, a Jupyter session. Matlab's own
instructions tell us to do the following, as an individual user:
cd <matlabrootdir>/extern/engines/python
python setup.py install
which each user could certainly do _after_ |module load Matlab|. But I'd
much prefer to provide our group with a module that takes care of all that
for them.
Is there an easy way to point to a specific directory within an EasyConfig
via "sources" and have it skip over the download and build steps, which
aren't necessary here?
If finding the directory path within EasyConfig is hard, I'm comfortable
writing a little EasyBlock to do that part (expanding envvars from the
Matlab dependence, etc.).
-- Mike Kelsey