Skip to content

Commit

Permalink
Warn when delocate is run without version metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
HexDecimal committed May 23, 2023
1 parent 9d744d8 commit 8d6325a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions delocate/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
# Init for delocate package

import warnings

from .delocating import delocate_path, delocate_wheel, patch_wheel
from .libsana import tree_libs, wheel_libs

try:
from ._version import __version__
except ImportError:
__version__ = "0.0.0"
warnings.warn(
"Delocate was not installed and is missing version metadata."
"\nMake sure this package is installed in development mode"
" with this command:\n\tpip install --editable .",
RuntimeWarning,
)

__all__ = (
"delocate_path",
Expand Down

0 comments on commit 8d6325a

Please sign in to comment.