bjdata 0.5.2__tar.gz → 0.5.4__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.
Files changed (35) hide show
  1. {bjdata-0.5.2 → bjdata-0.5.4}/PKG-INFO +2 -2
  2. {bjdata-0.5.2 → bjdata-0.5.4}/README.md +1 -1
  3. {bjdata-0.5.2 → bjdata-0.5.4}/bjdata/__init__.py +2 -2
  4. {bjdata-0.5.2 → bjdata-0.5.4}/bjdata.egg-info/PKG-INFO +2 -2
  5. {bjdata-0.5.2 → bjdata-0.5.4}/setup.py +9 -4
  6. {bjdata-0.5.2 → bjdata-0.5.4}/Binary_JData_Specification.md +0 -0
  7. {bjdata-0.5.2 → bjdata-0.5.4}/CHANGELOG +0 -0
  8. {bjdata-0.5.2 → bjdata-0.5.4}/LICENSE +0 -0
  9. {bjdata-0.5.2 → bjdata-0.5.4}/MANIFEST.in +0 -0
  10. {bjdata-0.5.2 → bjdata-0.5.4}/NOTICE +0 -0
  11. {bjdata-0.5.2 → bjdata-0.5.4}/UBJSON-Specification.md +0 -0
  12. {bjdata-0.5.2 → bjdata-0.5.4}/bjdata/__main__.py +0 -0
  13. {bjdata-0.5.2 → bjdata-0.5.4}/bjdata/compat.py +0 -0
  14. {bjdata-0.5.2 → bjdata-0.5.4}/bjdata/decoder.py +0 -0
  15. {bjdata-0.5.2 → bjdata-0.5.4}/bjdata/encoder.py +0 -0
  16. {bjdata-0.5.2 → bjdata-0.5.4}/bjdata/markers.py +0 -0
  17. {bjdata-0.5.2 → bjdata-0.5.4}/bjdata.egg-info/SOURCES.txt +0 -0
  18. {bjdata-0.5.2 → bjdata-0.5.4}/bjdata.egg-info/dependency_links.txt +0 -0
  19. {bjdata-0.5.2 → bjdata-0.5.4}/bjdata.egg-info/not-zip-safe +0 -0
  20. {bjdata-0.5.2 → bjdata-0.5.4}/bjdata.egg-info/requires.txt +0 -0
  21. {bjdata-0.5.2 → bjdata-0.5.4}/bjdata.egg-info/top_level.txt +0 -0
  22. {bjdata-0.5.2 → bjdata-0.5.4}/ez_setup.py +0 -0
  23. {bjdata-0.5.2 → bjdata-0.5.4}/pyproject.toml +0 -0
  24. {bjdata-0.5.2 → bjdata-0.5.4}/setup.cfg +0 -0
  25. {bjdata-0.5.2 → bjdata-0.5.4}/src/_bjdata.c +0 -0
  26. {bjdata-0.5.2 → bjdata-0.5.4}/src/common.h +0 -0
  27. {bjdata-0.5.2 → bjdata-0.5.4}/src/decoder.c +0 -0
  28. {bjdata-0.5.2 → bjdata-0.5.4}/src/decoder.h +0 -0
  29. {bjdata-0.5.2 → bjdata-0.5.4}/src/encoder.c +0 -0
  30. {bjdata-0.5.2 → bjdata-0.5.4}/src/encoder.h +0 -0
  31. {bjdata-0.5.2 → bjdata-0.5.4}/src/markers.h +0 -0
  32. {bjdata-0.5.2 → bjdata-0.5.4}/src/numpyapi.h +0 -0
  33. {bjdata-0.5.2 → bjdata-0.5.4}/src/python_funcs.c +0 -0
  34. {bjdata-0.5.2 → bjdata-0.5.4}/src/python_funcs.h +0 -0
  35. {bjdata-0.5.2 → bjdata-0.5.4}/test/test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bjdata
3
- Version: 0.5.2
3
+ Version: 0.5.4
4
4
  Summary: Binary JData and UBJSON encoder/decoder
5
5
  Home-page: https://github.com/NeuroJSON/pybj
6
6
  Author: Qianqian Fang
@@ -58,7 +58,7 @@ Dynamic: summary
58
58
  - Copyright: (C) Qianqian Fang (2020-2025) <q.fang at neu.edu>
59
59
  - Copyright: (C) Iotic Labs Ltd. (2016-2019) <vilnis.termanis at iotic-labs.com>
60
60
  - License: Apache License, Version 2.0
61
- - Version: 0.5.2
61
+ - Version: 0.5.4
62
62
  - URL: https://pypi.org/project/bjdata/
63
63
  - Github: https://github.com/NeuroJSON/pybj
64
64
  - BJData Spec Version: [V1 Draft 3](https://neurojson.org/bjdata/draft3)
@@ -5,7 +5,7 @@
5
5
  - Copyright: (C) Qianqian Fang (2020-2025) <q.fang at neu.edu>
6
6
  - Copyright: (C) Iotic Labs Ltd. (2016-2019) <vilnis.termanis at iotic-labs.com>
7
7
  - License: Apache License, Version 2.0
8
- - Version: 0.5.2
8
+ - Version: 0.5.4
9
9
  - URL: https://pypi.org/project/bjdata/
10
10
  - Github: https://github.com/NeuroJSON/pybj
11
11
  - BJData Spec Version: [V1 Draft 3](https://neurojson.org/bjdata/draft3)
@@ -14,7 +14,7 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- """BJData (Draft 2) and UBJSON (Draft 12) implementation
17
+ """BJData (Draft 3) and UBJSON (Draft 12) implementation
18
18
 
19
19
  Example usage:
20
20
 
@@ -40,7 +40,7 @@ except ImportError: # pragma: no cover
40
40
  from .encoder import EncoderException
41
41
  from .decoder import DecoderException
42
42
 
43
- __version__ = "0.5.2"
43
+ __version__ = "0.5.4"
44
44
 
45
45
  __all__ = (
46
46
  "EXTENSION_ENABLED",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bjdata
3
- Version: 0.5.2
3
+ Version: 0.5.4
4
4
  Summary: Binary JData and UBJSON encoder/decoder
5
5
  Home-page: https://github.com/NeuroJSON/pybj
6
6
  Author: Qianqian Fang
@@ -58,7 +58,7 @@ Dynamic: summary
58
58
  - Copyright: (C) Qianqian Fang (2020-2025) <q.fang at neu.edu>
59
59
  - Copyright: (C) Iotic Labs Ltd. (2016-2019) <vilnis.termanis at iotic-labs.com>
60
60
  - License: Apache License, Version 2.0
61
- - Version: 0.5.2
61
+ - Version: 0.5.4
62
62
  - URL: https://pypi.org/project/bjdata/
63
63
  - Github: https://github.com/NeuroJSON/pybj
64
64
  - BJData Spec Version: [V1 Draft 3](https://neurojson.org/bjdata/draft3)
@@ -20,7 +20,8 @@ import os
20
20
  import warnings
21
21
  from glob import glob
22
22
  from platform import python_implementation
23
- import numpy
23
+ from site import getusersitepackages
24
+ from numpy import get_include as numpy_get_include
24
25
 
25
26
  # Allow for environments without setuptools
26
27
  try:
@@ -43,6 +44,10 @@ def load_description(filename):
43
44
  return infile.read()
44
45
 
45
46
 
47
+ user_site = getusersitepackages()
48
+ user_numpy_include = os.path.join(user_site, "numpy", "_core", "include")
49
+
50
+
46
51
  # Loosely based on https://github.com/mongodb/mongo-python-driver/blob/master/setup.py
47
52
  class BuildExtWarnOnFail(build_ext):
48
53
  """Allow for extension building to fail."""
@@ -73,14 +78,14 @@ BUILD_EXTENSIONS = (
73
78
  "PYBJDATA_NO_EXTENSION" not in os.environ and python_implementation() != "PyPy"
74
79
  )
75
80
 
76
- COMPILE_ARGS = ["-std=c99", "-DUSE__BJDATA"]
81
+ COMPILE_ARGS = ["-std=c99", "-DUSE__BJDATA", "-v"]
77
82
  # For testing/debug only - some of these are GCC-specific
78
83
  # COMPILE_ARGS += ['-Wall', '-Wextra', '-Wundef', '-Wshadow', '-Wcast-align', '-Wcast-qual', '-Wstrict-prototypes',
79
84
  # '-pedantic']
80
85
 
81
86
  setup(
82
87
  name="bjdata",
83
- version="0.5.2",
88
+ version="0.5.4",
84
89
  description="Binary JData and UBJSON encoder/decoder",
85
90
  long_description=load_description("README.md"),
86
91
  long_description_content_type="text/markdown",
@@ -99,7 +104,7 @@ setup(
99
104
  Extension(
100
105
  "_bjdata",
101
106
  sorted(glob("src/*.c")),
102
- include_dirs=[numpy.get_include()],
107
+ include_dirs=[user_numpy_include, numpy_get_include()],
103
108
  extra_compile_args=COMPILE_ARGS,
104
109
  # undef_macros=['NDEBUG']
105
110
  )
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