1515 "win-arm64" : "ARM64" ,
1616}
1717
18- cwd = os .path .dirname (os .path .abspath (__file__ ))
1918
2019# A CMakeExtension needs a sourcedir instead of a file list.
2120# The name must be the _single_ output extension from the CMake build.
@@ -123,6 +122,8 @@ def build_extension(self, ext: CMakeExtension) -> None:
123122 ["cmake" , "--build" , "." , * build_args ], cwd = build_temp , check = True
124123 )
125124
125+ cwd = os .path .dirname (os .path .abspath (__file__ ))
126+
126127def main ():
127128 with open (os .path .join (cwd , "README.md" ), encoding = "utf-8" ) as f :
128129 long_description = f .read ()
@@ -132,10 +133,12 @@ def main():
132133 version = "0.0.1a02" ,
133134 description = "A machine learning package" ,
134135 long_description = long_description ,
135- ext_modules = [CMakeExtension ('tensor_array' )],
136+ ext_modules = [
137+ CMakeExtension ("tensor_array" )
138+ ],
136139 authors = "TensorArray-Creators" ,
137140 url = "https://github.com/Tensor-Array/Tensor-Array-Python" ,
138- packages = find_packages (exclude = ( "tests.*" , "tests" ,) ),
141+ packages = find_packages (),
139142 classifiers = [
140143 "Development Status :: 2 - Pre-Alpha" ,
141144
@@ -152,7 +155,7 @@ def main():
152155 ],
153156 license = "MIT" ,
154157 cmdclass = {
155- ' build_ext' : CMakeBuild
158+ " build_ext" : CMakeBuild
156159 },
157160 )
158161
0 commit comments