10
10
11
11
from setuptools import setup , Extension
12
12
from setuptools .command .build_ext import build_ext
13
- import os , pathlib , subprocess
13
+ import os
14
14
15
15
# Add cmake_lists_dir to Extension
16
16
class CMakeExtension (Extension ):
@@ -51,7 +51,7 @@ def build_extensions(self):
51
51
'-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_{}={}' .format (build_type .upper (), lib_temp ),
52
52
# Other intermediate static libraries are placed in a temporary build directory instead
53
53
'-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_{}={}' .format (build_type .upper (), self .build_temp ),
54
- # In this example, we pass in the version to C++. You might not need to.
54
+ # VERSION_INFO is defined in setup() and passed into the C++ here
55
55
'-DVERSION_INFO={}' .format (self .distribution .get_version ())
56
56
]
57
57
@@ -67,11 +67,9 @@ def build_extensions(self):
67
67
subprocess .check_call (['cmake' , '--build' , '.' , '--config' , build_type ], cwd = self .build_temp )
68
68
print ("CMake build done!\n " )
69
69
70
-
71
-
72
70
setup (
73
71
name = "pyRCSwitch" ,
74
- version = "1.0 .0" ,
72
+ version = "0.1 .0" ,
75
73
author = "Jorge Rivera" ,
76
74
77
75
description = "Python module to wrap the RCSwitch Common Library" ,
@@ -87,7 +85,7 @@ def build_extensions(self):
87
85
"Intended Audience :: Developers" ,
88
86
"Intended Audience :: Science/Research" ,
89
87
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)" ,
90
- "Programming Language :: C" ,
88
+ "Programming Language :: C++ " ,
91
89
"Programming Language :: Python" ,
92
90
"Programming Language :: Python :: 3" ,
93
91
"Programming Language :: Python :: 3 :: Only" ,
0 commit comments