Remove feature flags from Python package requirements

This commit is contained in:
Olivier 'reivilibre' 2021-07-05 11:12:59 +01:00
parent ed5f58cb5c
commit 0f389b4c6d

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU General Public License
# along with Scone. If not, see <https://www.gnu.org/licenses/>.
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: