Commit 0315c1b2 authored by Łukasz Nowak's avatar Łukasz Nowak

Revert "component/defaults: Allow to force gcc from SlapOS"

This reverts commit 1bd4fc32
parent abfa1183
......@@ -38,8 +38,6 @@ part = gcc-8.2
# Minimum version for all components that might be required for
# slapos.rebootstrap (see https://bugs.python.org/issue34112 about Python 3.7+).
min_version = 5.4
# A switch for environments which want to force slapos provided gcc
force_slapos_gcc = False
init =
import os, subprocess
parse_version = lambda ver: tuple(map(int, ver.strip().split('.')))
......@@ -55,9 +53,8 @@ init =
# the conditions have no impact on the dependant parts.
min_version = options.pop('min_version', None)
max_version = options.pop('max_version', None)
force_slapos_gcc = options.pop('force_slapos_gcc', 'False').lower() == 'true'
###
if (not force_slapos_gcc) and (parse_version(min_version or current)
if (parse_version(min_version or current)
<= parse_version(current)
<= parse_version(max_version or current)):
del options['part']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment