Ah, there is a correct way to do it ( https://github.com/easybuilders/easybuild-framework/blob/develop/easybuild/framework/extension.py#L204 ): options = {'modulename': False,}
On Fri, 4 Sep 2020 at 12:45, Alan O'Cais <[email protected]<mailto:[email protected]>> wrote: Hi Wolfram, Without a better workaround, I can think of a dirty cheat. You can change the name of the module it expects to find such that it will always pass that particular check, e.g., add this to your easyconfig (untested) options = {'modulename': 'os',} Can you open an issue in the easyblock repo so we keep track of this limitation? Thanks, Alan On Fri, 4 Sep 2020 at 12:15, Wolfram Zieger <[email protected]<mailto:[email protected]>> wrote: Hello, silly question maybe, but I'm really stuck here: Building an .eb recipe for a PyPi package called "cellxgene" (which by the way isn't a good idea at all, because dependency versions hell of this pypi-package - but that's another thing). Looking a t the documentation, there seems nothing, this Python package provides to "import", as it is a standalone Python program (as I understand it). So "import cellxgene" fails (which happens during easybuilding at the end of a huge dependency chain) and there is no other modulename I could provide. Now I can build this either as easyblock = 'PythonPackage' (with exts_defaultclass = 'PythonPackage') or as easyblock = 'PythonBundle' - but because the final sanity check will either way be "import cellxgene" it only works with "skipsteps = ['sanitycheck']" which I really really dislike (providing "sanity_check_commands" does not override the "import" test). Question: Is there a way to only skip the "import test" for that final PythonPackage only (after all other dependencies do complete with that check), or give it a dummy modulename or something like that? So I can keep a sanity-check in? Or shouldn't I use "PythonPackage" at all for a standalone Python program even when available from PyPi? Thanks and best regards from Berlin, Wolfram -- Wolfram Zieger -------------- Senior Systems Engineer IT Services Berlin Phone: +49 30 2007 697 -12 alt. Phone: +49 160 58 28 208 Fax: +49 30 2007 697 -11 [email protected]<mailto:[email protected]> science+computing ag/ATOS Geschäftsstelle Berlin Am Studio 16 12489 Berlin, Germany https://de.atos.net/sc science + computing an A T O S company -- Dr. Alan O'Cais E-CAM Software Manager Juelich Supercomputing Centre Forschungszentrum Juelich GmbH 52425 Juelich, Germany Phone: +49 2461 61 5213 Fax: +49 2461 61 6656 E-mail: [email protected]<mailto:[email protected]> WWW: http://www.fz-juelich.de/ias/jsc/EN -- Dr. Alan O'Cais E-CAM Software Manager Juelich Supercomputing Centre Forschungszentrum Juelich GmbH 52425 Juelich, Germany Phone: +49 2461 61 5213 Fax: +49 2461 61 6656 E-mail: [email protected]<mailto:[email protected]> WWW: http://www.fz-juelich.de/ias/jsc/EN ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------ Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzender des Aufsichtsrats: MinDir Volker Rieke Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender), Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------

