polyclipNP 0.3__tar.gz → 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.
@@ -1,5 +1,7 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: polyclipNP
3
- Version: 0.3
3
+ Version: 0.7
4
4
  Summary: Swig wrapper of polyclip.c from J.D. Smith
5
5
  Author: N. Pirzkal
6
+ Dynamic: author
7
+ Dynamic: summary
@@ -8,7 +8,7 @@ pip install polyclipNP
8
8
  ```
9
9
  or clone github depo and
10
10
  ```
11
- python setup.py install
11
+ python -m pip install . --no-build-isolation
12
12
  ```
13
13
  # Sample Usage: #
14
14
  ```
@@ -1,5 +1,7 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: polyclipNP
3
- Version: 0.3
3
+ Version: 0.7
4
4
  Summary: Swig wrapper of polyclip.c from J.D. Smith
5
5
  Author: N. Pirzkal
6
+ Dynamic: author
7
+ Dynamic: summary
@@ -1,5 +1,7 @@
1
1
  README.md
2
2
  polyclipNP.py
3
+ polyclipNP_c.c
4
+ polyclipNP_c_wrap.c
3
5
  setup.py
4
6
  polyclipNP.egg-info/PKG-INFO
5
7
  polyclipNP.egg-info/SOURCES.txt
@@ -0,0 +1,2 @@
1
+ _polyclipNP
2
+ polyclipNP
@@ -1,15 +1,12 @@
1
- # This file was automatically generated by SWIG (http://www.swig.org).
2
- # Version 4.0.2
1
+ # This file was automatically generated by SWIG (https://www.swig.org).
2
+ # Version 4.4.1
3
3
  #
4
- # Do not make changes to this file unless you know what you are doing--modify
4
+ # Do not make changes to this file unless you know what you are doing - modify
5
5
  # the SWIG interface file instead.
6
6
 
7
7
  from sys import version_info as _swig_python_version_info
8
- if _swig_python_version_info < (2, 7, 0):
9
- raise RuntimeError("Python 2.7 or later required")
10
-
11
8
  # Import the low-level C/C++ module
12
- if __package__ or "." in __name__:
9
+ if getattr(globals().get("__spec__"), "parent", None) or __package__ or "." in __name__:
13
10
  from . import _polyclipNP
14
11
  else:
15
12
  import _polyclipNP
@@ -29,10 +26,10 @@ def _swig_repr(self):
29
26
 
30
27
  def _swig_setattr_nondynamic_instance_variable(set):
31
28
  def set_instance_attr(self, name, value):
32
- if name == "thisown":
33
- self.this.own(value)
34
- elif name == "this":
29
+ if name == "this":
35
30
  set(self, name, value)
31
+ elif name == "thisown":
32
+ self.this.own(value)
36
33
  elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
37
34
  set(self, name, value)
38
35
  else:
@@ -65,4 +62,3 @@ class _SwigNonDynamicMeta(type):
65
62
  def polyclip_multi4(len_l, len_r, len_b, len_t, len_px, len_py, n_poly, len_poly_inds, len_x, len_y, len_nclip_poly, len_areas, len_index):
66
63
  return _polyclipNP.polyclip_multi4(len_l, len_r, len_b, len_t, len_px, len_py, n_poly, len_poly_inds, len_x, len_y, len_nclip_poly, len_areas, len_index)
67
64
 
68
-