Skip to content

Commit f9e3c5e

Browse files
committed
Avoid libvips import during "preparing metadata"-phase of pip
1 parent 66d0a66 commit f9e3c5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ zip-safe = false
6363
include-package-data = false
6464

6565
[tool.setuptools.dynamic]
66-
version = {attr = "pyvips.__version__"}
66+
version = {attr = "pyvips.version.__version__"}
6767

6868
[tool.setuptools.packages.find]
6969
exclude = [

pyvips/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# user code can override this null handler
1111
logger.addHandler(logging.NullHandler())
1212

13-
# pull in our module version number, see also pyproject.toml
13+
# pull in our module version number
1414
from .version import __version__
1515

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

0 commit comments

Comments
 (0)