diff --git a/easybuild/easyblocks/p/python.py b/easybuild/easyblocks/p/python.py index f7372845a8..f4f66dfbb8 100644 --- a/easybuild/easyblocks/p/python.py +++ b/easybuild/easyblocks/p/python.py @@ -643,11 +643,6 @@ def make_module_extra(self, *args, **kwargs): new_dir = os.path.join('lib', 'python' + self.pyshortver, 'site-packages') old_dir = os.path.join(log_path(), 'python') if not os.path.exists(os.path.join(self.installdir, new_dir, 'sitecustomize.py')): - if not os.path.exists(os.path.join(self.installdir, old_dir, 'sitecustomize.py')): - raise EasyBuildError("sitecustomize.py is missing from installation.") - else: - txt += self.module_generator.prepend_paths(PYTHONPATH, os.path.join(self.installdir, old_dir)) - - + txt += self.module_generator.prepend_paths(PYTHONPATH, os.path.join(self.installdir, old_dir)) return txt