-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* binary wheels. * binary wheels. * bump setup for wheels. * bump setup for wheels. * bump setup for wheels. * cleanup manylinux * bump * pdoc gen
- Loading branch information
Showing
10 changed files
with
152 additions
and
48 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
ARG BASE_CONTAINER=quay.io/pypa/manylinux2010_x86_64 | ||
FROM ${BASE_CONTAINER} | ||
|
||
RUN yum install -y cmake make gcc git openmpi-devel llvm-devel | ||
|
||
ARG SS_RELEASE=v4.0.3 | ||
ARG SS_COMPACT=0 | ||
|
||
WORKDIR /build | ||
RUN git clone https://github.com/DrTimothyAldenDavis/GraphBLAS.git --depth 1 --branch $SS_RELEASE | ||
|
||
WORKDIR /build/GraphBLAS/build | ||
RUN cmake .. -DGBCOMPACT=${SS_COMPACT} && make -j8 && make install | ||
RUN ldconfig | ||
RUN /bin/rm -Rf /build |
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
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
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
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
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,9 @@ | ||
cffi | ||
numpy | ||
scipy | ||
numba | ||
pytest | ||
setuptools | ||
contextvars | ||
matplotlib | ||
graphviz |
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
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
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,49 +1,10 @@ | ||
#!/bin/bash | ||
|
||
# this script is to setup a locally installed copy of SuiteSparse and | ||
# pygraphblas into a local venv style virtual environment. | ||
|
||
# you will need | ||
# apt-get update && apt-get install -yq cmake make wget libpython3-dev python3-pip libreadline-dev llvm-10-dev git python3-virtualenv | ||
|
||
SS_RELEASE=v4.0.0draft5 | ||
SS_BURBLE=0 | ||
SS_COMPACT=1 | ||
|
||
mkdir -p local/build | ||
cd local/build | ||
git clone https://github.com/DrTimothyAldenDavis/GraphBLAS.git --depth 1 --branch ${SS_RELEASE} | ||
|
||
cd GraphBLAS | ||
cmake . -DGB_BURBLE=${SS_BURBLE} -DGBCOMPACT=${SS_COMPACT} && make -j8 && make DESTDIR=.. install | ||
|
||
cd .. | ||
|
||
python3 -m virtualenv --python=python3 venv | ||
|
||
git clone https://github.com/Graphegon/pygraphblas.git --depth 1 --branch Graphegon/${SS_RELEASE} | ||
git clone https://github.com/Graphegon/pygraphblas.git --depth 1 --branch main | ||
cd pygraphblas | ||
|
||
cat <<'EOF' >> libpatch.diff | ||
diff --git a/pygraphblas/build.py b/pygraphblas/build.py | ||
index 72b42e3..f448892 100644 | ||
--- a/pygraphblas/build.py | ||
+++ b/pygraphblas/build.py | ||
@@ -40,6 +40,8 @@ def build_ffi(): | ||
"_pygraphblas", | ||
source, | ||
libraries=["graphblas"], | ||
+ include_dirs=['../usr/local/include'], | ||
+ library_dirs=['../usr/local/lib'], | ||
extra_compile_args=[ | ||
"-std=c11", | ||
"-lm", | ||
EOF | ||
|
||
git apply libpatch.diff | ||
|
||
virtualenv --python=python3 venv | ||
python3 -m virtualenv --python=python3 venv | ||
. venv/bin/activate | ||
|
||
pip3 install -r minimal-requirements.txt | ||
python3 setup.py install | ||
RUN pip3 install -r minimal-requirements.txt | ||
RUN python3 setup.py install |
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