Skip to content

Commit

Permalink
Removing references to pkg_resources
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbyt3r committed Apr 14, 2024
1 parent 2570db1 commit 71f3d00
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pavement.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit 71f3d00

Please sign in to comment.