msgpack 1.0.6__tar.gz → 1.0.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {msgpack-1.0.6/msgpack.egg-info → msgpack-1.0.7}/PKG-INFO +1 -1
- {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/__init__.py +2 -2
- {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/pack.h +0 -4
- {msgpack-1.0.6 → msgpack-1.0.7/msgpack.egg-info}/PKG-INFO +1 -1
- {msgpack-1.0.6 → msgpack-1.0.7}/setup.py +6 -20
- {msgpack-1.0.6 → msgpack-1.0.7}/COPYING +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/MANIFEST.in +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/README.md +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/_cmsgpack.cpp +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/_cmsgpack.pyx +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/_packer.pyx +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/_unpacker.pyx +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/buff_converter.h +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/exceptions.py +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/ext.py +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/fallback.py +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/pack_template.h +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/sysdep.h +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/unpack.h +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/unpack_define.h +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/unpack_template.h +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/msgpack.egg-info/SOURCES.txt +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/msgpack.egg-info/dependency_links.txt +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/msgpack.egg-info/top_level.txt +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/pyproject.toml +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/setup.cfg +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/test/test_buffer.py +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/test/test_case.py +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/test/test_except.py +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/test/test_extension.py +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/test/test_format.py +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/test/test_limits.py +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/test/test_memoryview.py +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/test/test_newspec.py +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/test/test_obj.py +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/test/test_pack.py +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/test/test_read_size.py +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/test/test_seq.py +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/test/test_sequnpack.py +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/test/test_stricttype.py +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/test/test_subtype.py +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/test/test_timestamp.py +0 -0
- {msgpack-1.0.6 → msgpack-1.0.7}/test/test_unpack.py +0 -0
|
@@ -22,6 +22,8 @@ except ImportError:
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
def cythonize(src):
|
|
25
|
+
if not have_cython:
|
|
26
|
+
raise Exception("Cython is required for building from checkout")
|
|
25
27
|
sys.stderr.write(f"cythonize: {src!r}\n")
|
|
26
28
|
cython_compiler.compile([src], cplus=True)
|
|
27
29
|
|
|
@@ -29,31 +31,15 @@ def cythonize(src):
|
|
|
29
31
|
def ensure_source(src):
|
|
30
32
|
pyx = os.path.splitext(src)[0] + ".pyx"
|
|
31
33
|
|
|
32
|
-
if not os.path.exists(src):
|
|
33
|
-
if not have_cython:
|
|
34
|
-
raise NoCython
|
|
34
|
+
if not os.path.exists(src) or have_cython and os.stat(src).st_mtime < os.stat(pyx).st_mtime:
|
|
35
35
|
cythonize(pyx)
|
|
36
|
-
elif os.path.exists(pyx) and os.stat(src).st_mtime < os.stat(pyx).st_mtime and have_cython:
|
|
37
|
-
cythonize(pyx)
|
|
38
|
-
return src
|
|
39
36
|
|
|
40
37
|
|
|
41
38
|
class BuildExt(build_ext):
|
|
42
39
|
def build_extension(self, ext):
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
print("WARNING")
|
|
47
|
-
print("Cython is required for building extension from checkout.")
|
|
48
|
-
print("Install Cython >= 0.16 or install msgpack from PyPI.")
|
|
49
|
-
print("Falling back to pure Python implementation.")
|
|
50
|
-
return
|
|
51
|
-
try:
|
|
52
|
-
return build_ext.build_extension(self, ext)
|
|
53
|
-
except Exception as e:
|
|
54
|
-
print("WARNING: Failed to compile extension modules.")
|
|
55
|
-
print("msgpack uses fallback pure python implementation.")
|
|
56
|
-
print(e)
|
|
40
|
+
for src in ext.sources:
|
|
41
|
+
ensure_source(src)
|
|
42
|
+
return build_ext.build_extension(self, ext)
|
|
57
43
|
|
|
58
44
|
|
|
59
45
|
# Cython is required for sdist
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|