Skip to content

Commit

Permalink
Avoid libvips import during "preparing metadata"-phase of pip
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Mar 22, 2024
1 parent 66d0a66 commit f9e3c5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ zip-safe = false
include-package-data = false

[tool.setuptools.dynamic]
version = {attr = "pyvips.__version__"}
version = {attr = "pyvips.version.__version__"}

[tool.setuptools.packages.find]
exclude = [
Expand Down
2 changes: 1 addition & 1 deletion pyvips/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# user code can override this null handler
logger.addHandler(logging.NullHandler())

# pull in our module version number, see also pyproject.toml
# pull in our module version number
from .version import __version__

# try to import our binary interface ... if that works, we are in API mode
Expand Down

0 comments on commit f9e3c5e

Please sign in to comment.