8000 rename decls.py · libvips/pyvips@9f53357 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9f53357

Browse files
committed
rename decls.py
it was causing an import error for some py versions
1 parent 7384763 commit 9f53357

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ python:
4646
- "3.5"
4747
- "3.6"
4848
- "3.7"
49+
- "3.8"
4950
- "nightly"
5051
- "pypy"
5152
- "pypy3"
@@ -55,6 +56,7 @@ matrix:
5556
allow_failures:
5657
- python: "3.3"
5758
- python: "3.7"
59+
- python: "3.8"
5860
- python: "nightly"
5961

6062
install:

pyvips/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
logger.debug('Inited libvips')
8989

9090
if not API_mode:
91-
from pyvips import decls
91+
from pyvips import vdecls
9292

9393
major = vips_lib.vips_version(0)
9494
minor = vips_lib.vips_version(1)
@@ -100,7 +100,7 @@
100100
'api': False,
101101
}
102102

103-
ffi.cdef(decls.cdefs(features))
103+
ffi.cdef(vdecls.cdefs(features))
104104

105105
from .error import *
106106

pyvips/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ def get_suffixes():
6060
return names
6161

6262

63-
# we need to define this before we import the decls: they need to know which
64-
# bits of decl to make
63+
# we need to define this before we import the declarations: they need to know
64+
# which bits to make
6565
def at_least_libvips(x, y):
6666
"""Is this at least libvips x.y?"""
6767

pyvips/pyvips_build.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ def modversion(package):
3838
'api': True,
3939
}
4040

41-
from pyvips import decls
41+
from pyvips import vdecls
4242

4343
# handy for debugging
4444
#with open('vips-source.txt','w') as f:
45-
# c = decls.cdefs(features)
45+
# c = vdecls.cdefs(features)
4646
# f.write(c)
4747

48-
ffibuilder.cdef(decls.cdefs(features))
48+
ffibuilder.cdef(vdecls.cdefs(features))
4949

5050
if __name__ == "__main__":
5151
ffibuilder.compile(verbose=True)
File renamed without changes.

0 commit comments

Comments
 (0)
0