10
10
11
11
import sys
12
12
13
- __version__ = "0.0.1 "
13
+ __version__ = "0.0.2 "
14
14
15
15
is_64bits = sys .maxsize > 2 ** 32
16
16
17
17
spout_lib_base_dir = "vendor/SpoutGL/Binaries"
18
- spout_lib_dir = os .path .join (spout_lib_base_dir , "x64" if is_64bits else "Win32" )
18
+ spout_lib_dir = os .path .join (
19
+ spout_lib_base_dir , "x64" if is_64bits else "Win32" )
19
20
20
21
ext_modules = [
21
22
Pybind11Extension ("SpoutGL._spoutgl" ,
22
- # Note:
23
- # Sort input source files if you glob sources to ensure bit-for-bit
24
- # reproducible builds (https://github.com/pybind/python_example/pull/53)
25
- ["src/PySpoutGL.cpp" ],
26
-
27
- # Pass in the version to the compiled code
28
- define_macros = [('VERSION_INFO' , __version__ )],
29
-
30
- cxx_std = 17 ,
31
- include_dirs = ['vendor/SpoutGL' ],
32
- libraries = ['spout' ],
33
- library_dirs = [spout_lib_dir ],
34
-
35
- # Generate VS pdb symbols for debugging
36
- # extra_link_args=["/DEBUG:FULL"]
37
- ),
23
+ # Note:
24
+ # Sort input source files if you glob sources to ensure bit-for-bit
25
+ # reproducible builds (https://github.com/pybind/python_example/pull/53)
26
+ ["src/PySpoutGL.cpp" ],
27
+
28
+ # Pass in the version to the compiled code
29
+ define_macros = [('VERSION_INFO' , __version__ )],
30
+
31
+ cxx_std = 17 ,
32
+ include_dirs = ['vendor/SpoutGL' ],
33
+ libraries = ['spout' ],
34
+ library_dirs = [spout_lib_dir ],
35
+
36
+ # Generate VS pdb symbols for debugging
37
+ # extra_link_args=["/DEBUG:FULL"]
38
+ ),
38
39
]
39
40
40
41
HERE = pathlib .Path (__file__ ).parent
41
42
README = (HERE / "README.md" ).read_text ()
42
43
44
+
43
45
class CopyDllsAndBuildCommand (BuildCommand ):
44
46
"""Copies arch-specific DLLs to the SpoutGL package directory"""
45
47
46
48
def run (self ):
47
- shutil .copyfile (os .path .join (spout_lib_dir , "Spout.dll" ), "src/SpoutGL/Spout.dll" )
49
+ shutil .copyfile (os .path .join (spout_lib_dir , "Spout.dll" ),
50
+ "src/SpoutGL/Spout.dll" )
48
51
super ().run ()
49
52
53
+
50
54
setup (
51
55
name = "SpoutGL" ,
52
56
version = __version__ ,
@@ -56,15 +60,15 @@ def run(self):
56
60
description = "Wrapper around Spout frame streaming library for Windows" ,
57
61
long_description = README ,
58
62
long_description_content_type = "text/markdown" ,
59
-
63
+
60
64
classifiers = [
61
65
"Development Status :: 3 - Alpha" ,
62
66
"Operating System :: Microsoft :: Windows" ,
63
67
"License :: OSI Approved :: BSD License" ,
64
68
"Topic :: Multimedia :: Graphics :: Capture" ,
65
69
"Topic :: Multimedia :: Graphics :: Viewers"
66
70
],
67
-
71
+
68
72
ext_modules = ext_modules ,
69
73
extras_require = {"test" : []},
70
74
cmdclass = {
0 commit comments