Skip to content

Commit 26a3d95

Browse files
test
1 parent 0fdad28 commit 26a3d95

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[build-system]
22
requires = [
3-
"setuptools>=61.0",
3+
"setuptools",
44
"wheel",
55
"ninja",
6-
"cmake",
6+
"cmake"
77
]
88
build-backend = "setuptools.build_meta"

setup.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
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+
126127
def 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

Comments
 (0)