PyOpenGL-accelerate 3.1.5__tar.gz → 3.1.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.
Files changed (36) hide show
  1. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/OpenGL_accelerate/__init__.py +2 -2
  2. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/PKG-INFO +4 -9
  3. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/PyOpenGL_accelerate.egg-info/PKG-INFO +4 -9
  4. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/PyOpenGL_accelerate.egg-info/SOURCES.txt +5 -1
  5. PyOpenGL-accelerate-3.1.7/pyproject.toml +3 -0
  6. PyOpenGL-accelerate-3.1.7/setup.cfg +29 -0
  7. PyOpenGL-accelerate-3.1.7/setup.py +122 -0
  8. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/src/arraydatatype.c +1842 -923
  9. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/src/arraydatatype.pyx +1 -1
  10. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/src/buffers_formathandler.c +601 -205
  11. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/src/errorchecker.c +598 -202
  12. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/src/formathandler.c +643 -202
  13. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/src/latebind.c +687 -292
  14. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/src/nones_formathandler.c +554 -200
  15. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/src/numpy_formathandler.c +1182 -2300
  16. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/src/numpy_formathandler.pyx +1 -1
  17. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/src/vbo.c +1000 -412
  18. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/src/wrapper.c +2924 -1794
  19. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/src/wrapper.pyx +10 -6
  20. PyOpenGL-accelerate-3.1.7/tests/test_arraydatatypeaccel.py +115 -0
  21. PyOpenGL-accelerate-3.1.7/tests/test_numpyaccel.py +96 -0
  22. PyOpenGL-accelerate-3.1.5/setup.cfg +0 -4
  23. PyOpenGL-accelerate-3.1.5/setup.py +0 -149
  24. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/MANIFEST.in +0 -0
  25. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/OpenGL_accelerate/formathandler.pxd +0 -0
  26. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/OpenGL_accelerate/wrapper.pxd +0 -0
  27. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/PyOpenGL_accelerate.egg-info/dependency_links.txt +0 -0
  28. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/PyOpenGL_accelerate.egg-info/top_level.txt +0 -0
  29. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/README.txt +0 -0
  30. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/license.txt +0 -0
  31. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/src/buffers_formathandler.pyx +0 -0
  32. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/src/errorchecker.pyx +0 -0
  33. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/src/formathandler.pyx +0 -0
  34. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/src/latebind.pyx +0 -0
  35. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/src/nones_formathandler.pyx +0 -0
  36. {PyOpenGL-accelerate-3.1.5 → PyOpenGL-accelerate-3.1.7}/src/vbo.pyx +0 -0
@@ -6,5 +6,5 @@ wrapper mechanism. The source code is part of the
6
6
  PyOpenGL package and is built via the setupaccel.py
7
7
  script in the top level of the PyOpenGL source package.
8
8
  """
9
- __version__ = '3.1.5'
10
- __version_tuple__ = (3,1,5)
9
+ __version__ = "3.1.7"
10
+ __version_tuple__ = (3, 1, 7)
@@ -1,18 +1,12 @@
1
- Metadata-Version: 1.1
1
+ Metadata-Version: 2.1
2
2
  Name: PyOpenGL-accelerate
3
- Version: 3.1.5
3
+ Version: 3.1.7
4
4
  Summary: Acceleration code for PyOpenGL
5
5
  Home-page: http://pyopengl.sourceforge.net
6
+ Download-URL: http://sourceforge.net/project/showfiles.php?group_id=5988
6
7
  Author: Mike C. Fletcher
7
8
  Author-email: mcfletch@vrplumber.com
8
9
  License: BSD
9
- Download-URL: http://sourceforge.net/project/showfiles.php?group_id=5988
10
- Description-Content-Type: text/plain
11
- Description: Acceleration code for PyOpenGL
12
-
13
- This set of C (Cython) extensions provides acceleration of common operations
14
- for slow points in PyOpenGL 3.x
15
-
16
10
  Keywords: PyOpenGL,accelerate,Cython
17
11
  Platform: Win32
18
12
  Platform: Linux
@@ -25,3 +19,4 @@ Classifier: Programming Language :: C
25
19
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
26
20
  Classifier: Topic :: Multimedia :: Graphics :: 3D Rendering
27
21
  Classifier: Intended Audience :: Developers
22
+ Description-Content-Type: text/plain
@@ -1,18 +1,12 @@
1
- Metadata-Version: 1.1
1
+ Metadata-Version: 2.1
2
2
  Name: PyOpenGL-accelerate
3
- Version: 3.1.5
3
+ Version: 3.1.7
4
4
  Summary: Acceleration code for PyOpenGL
5
5
  Home-page: http://pyopengl.sourceforge.net
6
+ Download-URL: http://sourceforge.net/project/showfiles.php?group_id=5988
6
7
  Author: Mike C. Fletcher
7
8
  Author-email: mcfletch@vrplumber.com
8
9
  License: BSD
9
- Download-URL: http://sourceforge.net/project/showfiles.php?group_id=5988
10
- Description-Content-Type: text/plain
11
- Description: Acceleration code for PyOpenGL
12
-
13
- This set of C (Cython) extensions provides acceleration of common operations
14
- for slow points in PyOpenGL 3.x
15
-
16
10
  Keywords: PyOpenGL,accelerate,Cython
17
11
  Platform: Win32
18
12
  Platform: Linux
@@ -25,3 +19,4 @@ Classifier: Programming Language :: C
25
19
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
26
20
  Classifier: Topic :: Multimedia :: Graphics :: 3D Rendering
27
21
  Classifier: Intended Audience :: Developers
22
+ Description-Content-Type: text/plain
@@ -1,6 +1,8 @@
1
1
  MANIFEST.in
2
2
  README.txt
3
3
  license.txt
4
+ pyproject.toml
5
+ setup.cfg
4
6
  setup.py
5
7
  OpenGL_accelerate/__init__.py
6
8
  OpenGL_accelerate/formathandler.pxd
@@ -26,4 +28,6 @@ src/numpy_formathandler.pyx
26
28
  src/vbo.c
27
29
  src/vbo.pyx
28
30
  src/wrapper.c
29
- src/wrapper.pyx
31
+ src/wrapper.pyx
32
+ tests/test_arraydatatypeaccel.py
33
+ tests/test_numpyaccel.py
@@ -0,0 +1,3 @@
1
+ [build-system]
2
+ requires = [ "setuptools >= 42.0", "Cython >= 0.28", "numpy" ]
3
+ build-backend = "setuptools.build_meta"
@@ -0,0 +1,29 @@
1
+ [metadata]
2
+ name = PyOpenGL-accelerate
3
+ version = attr: OpenGL_accelerate.__init__.__version__
4
+ description = Acceleration code for PyOpenGL
5
+ author = Mike C. Fletcher
6
+ author_email = mcfletch@vrplumber.com
7
+ url = http://pyopengl.sourceforge.net
8
+ download_url = http://sourceforge.net/project/showfiles.php?group_id=5988
9
+ license = BSD
10
+ long_description = file: readme.txt
11
+ long_description_content_type = text/plain
12
+ keywords = PyOpenGL, accelerate, Cython
13
+ platforms = Win32, Linux, OS-X, Posix
14
+ classifiers =
15
+ License :: OSI Approved :: BSD License
16
+ Programming Language :: Python
17
+ Programming Language :: Python :: 3
18
+ Programming Language :: C
19
+ Topic :: Software Development :: Libraries :: Python Modules
20
+ Topic :: Multimedia :: Graphics :: 3D Rendering
21
+ Intended Audience :: Developers
22
+
23
+ [options]
24
+ packages = OpenGL_accelerate
25
+
26
+ [egg_info]
27
+ tag_build =
28
+ tag_date = 0
29
+
@@ -0,0 +1,122 @@
1
+ #!/usr/bin/env python
2
+ """Builds accelleration functions for PyOpenGL
3
+ """
4
+
5
+ from setuptools import setup, Extension
6
+
7
+ try:
8
+ from Cython.Distutils import build_ext
9
+ except ImportError:
10
+ have_cython = False
11
+ build_ext = False
12
+ else:
13
+ have_cython = True
14
+
15
+ import sys, os
16
+
17
+ HERE = os.path.normpath(os.path.abspath(os.path.dirname(__file__)))
18
+
19
+ extensions = []
20
+
21
+
22
+ def cython_extension(
23
+ name,
24
+ include_dirs=(),
25
+ ):
26
+ """Create a cython extension object"""
27
+ filenames = "%(name)s.c" % locals(), "%(name)s.pyx" % locals()
28
+ filename = filenames[bool(have_cython)]
29
+ return Extension(
30
+ "OpenGL_accelerate.%(name)s" % locals(),
31
+ [
32
+ os.path.join("src", filename),
33
+ ],
34
+ include_dirs=[
35
+ os.path.join(HERE, "src"),
36
+ HERE,
37
+ ]
38
+ + list(include_dirs),
39
+ define_macros=[
40
+ # *cython* itself is using the deprecated api, and the
41
+ # deprecated APIs are actually providing the attributes
42
+ # that we use throughout our code...
43
+ # ('NPY_NO_DEPRECATED_API','NPY_1_7_API_VERSION'),
44
+ ],
45
+ )
46
+
47
+
48
+ extensions.extend(
49
+ [
50
+ cython_extension("wrapper"),
51
+ cython_extension("formathandler"),
52
+ cython_extension("arraydatatype"),
53
+ cython_extension("errorchecker"),
54
+ cython_extension("vbo"),
55
+ cython_extension("nones_formathandler"),
56
+ cython_extension("latebind"),
57
+ ]
58
+ )
59
+ if sys.version_info[:2] >= (2, 7):
60
+ extensions.extend(
61
+ [
62
+ cython_extension("buffers_formathandler"),
63
+ ]
64
+ )
65
+
66
+ try:
67
+ import numpy
68
+ except ImportError:
69
+ sys.stderr.write("""Unable to import numpy, skipping numpy extension building\n""")
70
+ else:
71
+ if hasattr(numpy, "get_include"):
72
+ includeDirectories = [
73
+ numpy.get_include(),
74
+ ]
75
+ else:
76
+ includeDirectories = [
77
+ os.path.join(
78
+ os.path.dirname(numpy.__file__),
79
+ "core",
80
+ "include",
81
+ ),
82
+ ]
83
+ extensions.append(
84
+ cython_extension(
85
+ "numpy_formathandler",
86
+ includeDirectories,
87
+ )
88
+ )
89
+
90
+ if ( # Prevents running of setup during code introspection imports
91
+ __name__ == "__main__"
92
+ ):
93
+ # Workaround for Broken apple Python build params echoed in distutils
94
+ # Approach taken from the PyMongo driver. OS-X Python builds were created with
95
+ # non-existent flag, and distutils passes those flags to the extension
96
+ # build, newer clangs now treat those flags as errors rather than warnings.
97
+ import platform, sys
98
+
99
+ if sys.platform == "darwin" and "clang" in platform.python_compiler().lower():
100
+ from distutils.sysconfig import get_config_vars
101
+
102
+ res = get_config_vars()
103
+ for key in ("CFLAGS", "PY_CFLAGS"):
104
+ if key in res:
105
+ res[key] = res[key].replace("-mno-fused-madd", "")
106
+
107
+ extraArguments = {}
108
+ ### Now the actual set up call
109
+ if have_cython:
110
+ extraArguments["cmdclass"] = {
111
+ "build_ext": build_ext,
112
+ }
113
+ setup(
114
+ options={
115
+ "sdist": {
116
+ "formats": ["gztar"],
117
+ "force_manifest": True,
118
+ },
119
+ },
120
+ ext_modules=extensions,
121
+ **extraArguments
122
+ )