Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
#26334 : package pycosat
Browse files Browse the repository at this point in the history
  • Loading branch information
Thierry Monteil committed Sep 21, 2018
1 parent ca26fcc commit 3e44773
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 0 deletions.
28 changes: 28 additions & 0 deletions build/pkgs/pycosat/SPKG.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
= pycosat =

== Description ==

PicoSAT is a popular SAT solver written by Armin Biere in pure C. This package
provides efficient Python bindings to picosat on the C level, i.e. when
importing pycosat, the picosat solver becomes part of the Python process itself.
For ease of deployment, the picosat source (namely picosat.c and picosat.h) is
included in this project. These files have been extracted from the picosat
source.

== License ==

MIT

== Upstream Contact ==

PicoSAT: http://fmv.jku.at/picosat/
pycosat: https://github.com/ContinuumIO/pycosat

== Dependencies ==

None.

== Special Update/Build Instructions ==

None.

4 changes: 4 additions & 0 deletions build/pkgs/pycosat/checksums.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tarball=pycosat-VERSION.tar.gz
sha1=1c2243fcc52491db8aa11558d4df626f28311757
md5=08e378db1c15dc1668bc62897bd325a5
cksum=2006887185
5 changes: 5 additions & 0 deletions build/pkgs/pycosat/dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
$(PYTHON) | pip

----------
All lines of this file are ignored except the first.
It is copied by SAGE_ROOT/build/make/install into SAGE_ROOT/build/make/Makefile.
1 change: 1 addition & 0 deletions build/pkgs/pycosat/package-version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.6.3
15 changes: 15 additions & 0 deletions build/pkgs/pycosat/spkg-check
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
if [ "$SAGE_LOCAL" = "" ]; then
echo >&2 "Error: SAGE_LOCAL undefined - exiting..."
echo >&2 "Maybe run 'sage -sh'?"
exit 1
fi

echo "Testing pycosat..."

cd src
python test_pycosat.py

if [ $? -ne 0 ]; then
echo >&2 "Error running self tests."
exit 1
fi
15 changes: 15 additions & 0 deletions build/pkgs/pycosat/spkg-install
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
if [ "$SAGE_LOCAL" = "" ]; then
echo "SAGE_LOCAL undefined ... exiting";
echo "Maybe run 'sage -sh'?"
exit 1
fi

cd src

sdh_pip_install .

if [ $? -ne 0 ]; then
echo "Error installing pycosat ... exiting"
exit 1
fi

1 change: 1 addition & 0 deletions build/pkgs/pycosat/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
optional

0 comments on commit 3e44773

Please sign in to comment.