Skip to content

Commit c170648

Browse files
changes "setup.py"
1 parent 92b80e8 commit c170648

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ build/
33
bin/
44
temp/
55
__pycache__/
6-
*.egg-info/*
6+
*/*.egg-info/*
77
dist/
88
*.so

setup.py

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,23 +122,26 @@ def build_extension(self, ext: CMakeExtension) -> None:
122122
["cmake", "--build", ".", *build_args], cwd=build_temp, check=True
123123
)
124124

125-
cwd = os.path.dirname(os.path.abspath(__file__))
126-
127125
def main():
126+
cwd = os.path.dirname(os.path.abspath(__file__))
128127
with open(os.path.join(cwd, "README.md"), encoding="utf-8") as f:
129128
long_description = f.read()
130129

130+
packages = find_packages("src")
131+
132+
print(packages)
133+
131134
setup(
132135
name = "TensorArray",
133-
version = "0.0.1a2",
136+
version = "0.0.1a3",
134137
description = "A machine learning package",
135138
long_description=long_description,
136-
ext_modules=[
137-
CMakeExtension("tensor2")
138-
],
139139
authors = "TensorArray-Creators",
140140
url= "https://github.com/Tensor-Array/Tensor-Array-Python",
141-
packages=find_packages(),
141+
packages=packages,
142+
ext_modules=[
143+
CMakeExtension("tensor_array/core/tensor2")
144+
],
142145
classifiers = [
143146
"Development Status :: 2 - Pre-Alpha",
144147

@@ -157,6 +160,11 @@ def main():
157160
cmdclass={
158161
"build_ext": CMakeBuild
159162
},
163+
package_dir={
164+
"": "src",
165+
"tests": "tests"
166+
},
167+
python_requires=">=3.8",
160168
)
161169

162170
if __name__ == "__main__":

0 commit comments

Comments
 (0)