mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-11-10 03:13:14 -06:00
WIP
This commit is contained in:
parent
9a76c5e672
commit
954a7b556e
1 changed files with 3 additions and 1 deletions
|
@ -52,7 +52,7 @@ from typing import (
|
|||
from urllib.error import HTTPError
|
||||
from urllib.request import urlopen
|
||||
|
||||
__version__ = "23.5a1-13-gbaad178"
|
||||
__version__ = "23.5a1-14-g9a76c5e"
|
||||
|
||||
|
||||
@dataclass
|
||||
|
@ -974,6 +974,8 @@ class Viv:
|
|||
"""create import statement from package spec"""
|
||||
# TODO: warn user about using anything but standalone when
|
||||
# self.local_source is 'Not Found'
|
||||
if self.local_source == "Not Found" and not (args.standalone or args.path):
|
||||
warn("failed to find local copy of `viv` make sure to add it to your PYTHONPATH")
|
||||
|
||||
if not args.reqs:
|
||||
error("must specify a requirement", code=1)
|
||||
|
|
Loading…
Reference in a new issue