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: