15
15
"win-arm64" : "ARM64" ,
16
16
}
17
17
18
- cwd = os .path .dirname (os .path .abspath (__file__ ))
19
18
20
19
# A CMakeExtension needs a sourcedir instead of a file list.
21
20
# The name must be the _single_ output extension from the CMake build.
@@ -123,6 +122,8 @@ def build_extension(self, ext: CMakeExtension) -> None:
123
122
["cmake" , "--build" , "." , * build_args ], cwd = build_temp , check = True
124
123
)
125
124
125
+ cwd = os .path .dirname (os .path .abspath (__file__ ))
126
+
126
127
def main ():
127
128
with open (os .path .join (cwd , "README.md" ), encoding = "utf-8" ) as f :
128
129
long_description = f .read ()
@@ -132,10 +133,12 @@ def main():
132
133
version = "0.0.1a02" ,
133
134
description = "A machine learning package" ,
134
135
long_description = long_description ,
135
- ext_modules = [CMakeExtension ('tensor_array' )],
136
+ ext_modules = [
137
+ CMakeExtension ("tensor_array" )
138
+ ],
136
139
authors = "TensorArray-Creators" ,
137
140
url = "https://github.com/Tensor-Array/Tensor-Array-Python" ,
138
- packages = find_packages (exclude = ( "tests.*" , "tests" ,) ),
141
+ packages = find_packages (),
139
142
classifiers = [
140
143
"Development Status :: 2 - Pre-Alpha" ,
141
144
@@ -152,7 +155,7 @@ def main():
152
155
],
153
156
license = "MIT" ,
154
157
cmdclass = {
155
- ' build_ext' : CMakeBuild
158
+ " build_ext" : CMakeBuild
156
159
},
157
160
)
158
161
0 commit comments