From 0f389b4c6d78b119c268e605c6ca9a85d21180c8 Mon Sep 17 00:00:00 2001 From: Olivier Date: Mon, 5 Jul 2021 11:12:59 +0100 Subject: [PATCH] Remove feature flags from Python package requirements --- scone/default/recipes/python.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scone/default/recipes/python.py b/scone/default/recipes/python.py index a16b7de..8f31563 100644 --- a/scone/default/recipes/python.py +++ b/scone/default/recipes/python.py @@ -14,7 +14,7 @@ # # You should have received a copy of the GNU General Public License # along with Scone. If not, see . - +import re from pathlib import Path from typing import List, Tuple @@ -60,6 +60,7 @@ class PythonVenv(Recipe): preparation.needs("directory", str(Path(self.dir).parent)) for name, flags in self.install: + featureless_name = re.sub(r"(\[[^]]+\])+$", "", name) if "-r" in flags: preparation.needs("file", name) elif "git" in flags or "dir" in flags: