Skip to content

Commit edfc2e1

Browse files
release v0.0.5
1 parent ecdd19c commit edfc2e1

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

MANIFEST.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
recursive-include scripts *.sh
2+
graft src
3+
graft cpp
4+
graft tensor-array-repo/Tensor-Array/lib
5+
graft tensor-array-repo/Tensor-Array/include
6+
prune tensor-array-repo/Tensor-Array/src

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ before-all = [
2828
"chmod +x scripts/build-env/manylinux.sh",
2929
"scripts/build-env/manylinux.sh"
3030
]
31-
repair-wheel-command = [
32-
"auditwheel repair --lib-sdir tensor-array-repo/Tensor-Array/lib -w {dest_dir} {wheel}",
33-
]
3431

3532
[tool.cibuildwheel.linux.environment]
3633
cuda = "12.9"

scripts/build-env/manylinux.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,6 @@ fi
7777

7878
cd ../..
7979

80+
# Copy the shared library to the Tensor-Array lib directory
81+
echo "Copying the shared library to the Tensor-Array lib directory..."
82+
cp tensor-array-repo/Tensor-Array/lib/libtensorarray_core.so src/tensor_array/

setup.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,13 @@ def main():
4848

4949
"Environment :: GPU :: NVIDIA CUDA :: 12",
5050
],
51-
packages = find_packages() + ["tensor_array"],
52-
package_dir={
53-
"tensor_array": 'src/tensor_array',
51+
packages = find_packages("src"),
52+
package_dir = {
53+
"": "src",
54+
},
55+
package_data = {
56+
"tensor_array": ["*.so"]
5457
},
55-
include_package_data=True,
56-
data_files= [
57-
("tensor-array-repo/Tensor-Array/include", glob.glob(os.path.join("cpp", "include", "*.hh"))),
58-
("tensor-array-repo/Tensor-Array/lib", glob.glob(os.path.join("cpp", "lib", "*.so"))),
59-
("tensor-array-repo/Tensor-Array/scripts", glob.glob(os.path.join("scripts", "*.sh"))),
60-
("scripts", glob.glob(os.path.join("scripts", "local", "*.sh"))),
61-
],
6258
ext_modules = ext_modules,
6359
cmdclass = {
6460
"build_ext": build_ext,

0 commit comments

Comments
 (0)