forked from openucx/ucx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Setup clean * Added Makefile for extensions * Updated setup.py - removed hardcoded paths - use setuptools * fixups * Update clean * Use python3 * update location
- Loading branch information
1 parent
e827c4b
commit d97cf7e
Showing
3 changed files
with
48 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
*.*~ | ||
pybind/build | ||
pybind/call_myucp.c | ||
pybind/call_myucp.*.so | ||
pybind/ucp_py.c | ||
pybind/ucp_py.*.so | ||
pybind/*.a | ||
pybind/*.o | ||
|
||
dask-worker-space | ||
__pytestcache__ | ||
__pycache__ | ||
*.egg-info/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
CC = gcc | ||
|
||
pybind/libucp_py_ucp_fxns.a: pybind/ucp_py_ucp_fxns.o pybind/buffer_ops.o | ||
ar rcs $@ $^ | ||
|
||
pybind/%.o: pybind/%.c | ||
$(CC) -shared -fPIC -c $^ -o $@ | ||
|
||
install: pybind/libucp_py_ucp_fxns.a | ||
cd pybind && \ | ||
python3 setup.py build_ext && \ | ||
python3 -m pip install -e . | ||
|
||
clean: | ||
rm pybind/*.o pybind/*.a | ||
rm -rf pybind/build pybind/ucx_py.egg-info | ||
rm pybind/ucp_py.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters