File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 1010import functools
1111import logging
1212import operator
13+ import os
1314import os .path
1415from pathlib import Path
1516import re
2223import urllib .request
2324import venv
2425
25- import pkg_resources
26+ try :
27+ import pkg_resources
28+ except ImportError :
29+ home = os .environ ["HOME" ]
30+ bb5_home = f"/gpfs/bbp.cscs.ch/home/{ os .environ ['USER' ]} "
31+ if home == bb5_home :
32+ print ("Error: could not find setuptools Python package." , file = sys .stderr )
33+ print ("Consider loading module 'python-dev'\n " , file = sys .stderr )
34+ print (" module load python-dev\n " , file = sys .stderr )
35+ sys .exit (1 )
36+ raise
2637
2738THIS_SCRIPT_DIR = Path (__file__ ).resolve ().parent
2839DEFAULT_RE_EXTRACT_VERSION = "([0-9]+\\ .[0-9]+(\\ .[0-9]+)?[ab]?)"
You can’t perform that action at this time.
0 commit comments