Skip to content

Commit 9e31e1f

Browse files
committed
[Project] Minor fixes
1 parent 34892a3 commit 9e31e1f

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ prototyping algorithms on a local computer for later running on a powerful serve
3232

3333
### Features summary
3434

35+
- C API for performance-critical computations
36+
- Python package for every-day tasks
37+
- Cuda backend for computations
38+
- Cpu backend for computations
3539
- Matrix creation (empty, from data, with random data)
3640
- Matrix-matrix operations (multiplication, element-wise addition, kronecker product)
3741
- Matrix operations (equality, transpose, reduce to vector, extract sub-matrix)
@@ -40,8 +44,6 @@ prototyping algorithms on a local computer for later running on a powerful serve
4044
- IO (import/export matrix from/to `.mtx` file format)
4145
- GraphViz (export single matrix or set of matrices as a graph with custom color and label settings)
4246
- Debug (matrix string debug markers, logging)
43-
- C API for performance-critical computations
44-
- Python package for every-day tasks
4547

4648
### Platforms
4749

@@ -207,7 +209,7 @@ $ cd tests
207209
$ python3 -m unittest discover -v
208210
```
209211
210-
**Note:** after the build process, the shared library object `libcubool.so` will be placed
212+
**Note:** after the build process, the shared library object will be placed
211213
inside the build directory in the folder with python wrapper `python/pycubool/`.
212214
So, the wrapper will be able to automatically locate required lib file.
213215
@@ -282,6 +284,8 @@ cuBool
282284
│ ├── include - library public C API
283285
│ ├── sources - source-code for implementation
284286
│ │ ├── core - library core and state management
287+
│ │ ├── io - logging and i/o stuff
288+
│ │ ├── utils - auxilary class shared among modules
285289
│ │ ├── backend - common interfaces
286290
│ │ ├── cuda - cuda backend
287291
│ │ └── sequential - fallback cpu backend

python/setup.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
import pathlib
23
import setuptools
34

@@ -8,6 +9,15 @@
89
with open(HERE / "README.md", "r", encoding="utf-8") as fh:
910
README = fh.read()
1011

12+
# Find lib name
13+
SOURCE_PATH = pathlib.Path(__file__).resolve()
14+
LIB_NAME = None
15+
16+
for entry in os.listdir(SOURCE_PATH.parent / "pycubool"):
17+
if "cubool" in str(entry):
18+
LIB_NAME = entry
19+
break
20+
1121
setuptools.setup(
1222
name="pycubool",
1323
version="1.0.0",
@@ -49,7 +59,7 @@
4959
],
5060
packages=["pycubool"],
5161
package_dir={'': '.'},
52-
package_data={'': ['libcubool.so']},
62+
package_data={'': [LIB_NAME]},
5363
python_requires=">=3.0",
5464
include_package_data=True
5565
)

0 commit comments

Comments
 (0)