From 71f3d00b91973bc9b6908c8f4a0471bf2cb487d0 Mon Sep 17 00:00:00 2001 From: Mark Murnane Date: Sun, 14 Apr 2024 13:36:35 -0400 Subject: [PATCH] Removing references to pkg_resources --- pavement.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pavement.py b/pavement.py index b3006b6..8cd5396 100644 --- a/pavement.py +++ b/pavement.py @@ -2,7 +2,6 @@ import os import sys import glob -import pkg_resources from itertools import chain from os.path import abspath, dirname, exists, join @@ -180,12 +179,6 @@ def run_all_assertions(): def create_plugin(options): """create a plugin skeleton to start a new project""" - # this is actually needed thanks to the skeleton using jinja2 (and six, although that's changeable) - try: - pkg_resources.get_distribution("sideboard") - except pkg_resources.DistributionNotFound: - raise BuildFailure("This command must be run from within a configured virtual environment.") - plugin_name = options.create_plugin.name if getattr(options.create_plugin, 'drop', False) and (PLUGINS_DIR / path(plugin_name.replace('_', '-'))).exists():