|
62 | 62 | import urllib.request as std_urllib |
63 | 63 |
|
64 | 64 |
|
65 | | -EB_BOOTSTRAP_VERSION = '20210106.01' |
| 65 | +EB_BOOTSTRAP_VERSION = '20210618.01' |
66 | 66 |
|
67 | 67 | # argparse preferrred, optparse deprecated >=2.7 |
68 | 68 | HAVE_ARGPARSE = False |
|
82 | 82 |
|
83 | 83 | STAGE1_SUBDIR = 'eb_stage1' |
84 | 84 |
|
| 85 | +# the EasyBuild bootstrap script is deprecated, and will only run if $EASYBUILD_BOOTSTRAP_DEPRECATED is defined |
| 86 | +EASYBUILD_BOOTSTRAP_DEPRECATED = os.environ.pop('EASYBUILD_BOOTSTRAP_DEPRECATED', None) |
| 87 | + |
85 | 88 | # set print_debug to True for detailed progress info |
86 | 89 | print_debug = os.environ.pop('EASYBUILD_BOOTSTRAP_DEBUG', False) |
87 | 90 |
|
@@ -854,6 +857,17 @@ def main(): |
854 | 857 | self_txt = open(__file__).read() |
855 | 858 | if IS_PY3: |
856 | 859 | self_txt = self_txt.encode('utf-8') |
| 860 | + |
| 861 | + url = 'https://docs.easybuild.io/en/latest/Installation.html' |
| 862 | + info("Use of the EasyBuild boostrap script is DEPRECATED (since June 2021).") |
| 863 | + info("It is strongly recommended to use one of the installation methods outlined at %s instead!\n" % url) |
| 864 | + if not EASYBUILD_BOOTSTRAP_DEPRECATED: |
| 865 | + error("The EasyBuild bootstrap script will only run if $EASYBUILD_BOOTSTRAP_DEPRECATED is defined.") |
| 866 | + else: |
| 867 | + msg = "You have opted to continue with the EasyBuild bootstrap script by defining " |
| 868 | + msg += "$EASYBUILD_BOOTSTRAP_DEPRECATED. Good luck!\n" |
| 869 | + info(msg) |
| 870 | + |
857 | 871 | info("EasyBuild bootstrap script (version %s, MD5: %s)" % (EB_BOOTSTRAP_VERSION, md5(self_txt).hexdigest())) |
858 | 872 | info("Found Python %s\n" % '; '.join(sys.version.split('\n'))) |
859 | 873 |
|
|
0 commit comments