Hi, I am trying to write an EC for tensorflow_hub[1] and have the following:
################################################################################ easyblock = 'PythonPackage' name = 'tensorflow_hub' version = '0.8.0' versionsuffix = '-Python-%(pyver)s' homepage = 'https://github.com/tensorflow/hub' description = """TensorFlow Hub is a repository of reusable assets for machine learning with TensorFlow. In particular, it provides pre-trained SavedModels that can be reused to solve new tasks with less training time and less training data.""" toolchain = {'name': 'fosscuda', 'version': '2019b'} source_urls = ['https://github.com/tensorflow/hub/archive/'] sources = ['v%(version)s.tar.gz'] checksums = ['8b8d7b121855d43c52af4899552f1458ecd83bc9e50748dc4180e62e1d2bedd9'] builddependencies = [('binutils', '2.32')] dependencies = [('Python', '3.7.4'), ('TensorFlow', '2.2.0', versionsuffix)] start_dir = 'tensorflow_hub/pip_package' download_dep_fail = True sanity_pip_check = True use_pip = True moduleclass = 'lib' ################################################################################ However this fails with FileNotFoundError: [Errno 2] No such file or directory: 'tensorflow_hub/version.py' I would indeed have expected start_dir = 'tensorflow_hub' to be correct, but then 'setup.py' isn't found. Any ideas as to how to progress? Cheers, Loris BTW: It seem as if maybe I should build the pip package first and then install from the pip packages, but I don't know how that would be done with EB. Footnotes: [1] https://github.com/tensorflow/hub -- Dr. Loris Bennett (Mr.) ZEDAT, Freie Universität Berlin Email [email protected]

