Hi Jeff,

On 04/05/16 14:10, Jeff Tan wrote:
Hi all

Is there a pip implementation of the PythonPackage easyblock, or some
equivalent that manages prerequisites automatically?

Our users are used to having python modules simply available from the
base python libraries, installed using pip. This way, as long as they
have the Python module loaded, all the python modules therein are also
available without loading additional modules. From what we can see, the
PythonPackage easyblock uses setuptools, and does not check for
dependencies as much, so it's up to us to include them in the
dependencies list. Are we perhaps missing something, or is there a more
pip-like easyblock

Of course, we know there are issues arising from managing python modules
(with pip) outside of EasyBuild, but we're exploring all options.

setuptools will also happily install dependency modules, just like pip does, strictly speaking there's no need to take care of all dependencies 'manually'. On the other hand, that's actually something we plan to look into, blocking this auto-resolving of dependencies, to have full control...

The PythonPackage easyblock supported in EasyBuild v2.7.0 includes support for installing Python packages with pip, but it doesn't do so by default, you need to define 'use_pip = True' in your easyconfig file.

It's not as well tested as using setuptools though, so you may run into problems (or not).
Do keep us posted if you plan to pursue that avenue.


regards,

Kenneth


Regards
Jeff

Jeff Tan

Infrastructure Services & Technologies,
Melbourne Research Laboratory, IBM Research - Australia

Facilities, Victorian Life Sciences Computation Initiative
University of Melbourne

Reply via email to