-
-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #28175: Move optional sage optimization backends (COIN, CPLEX, G…
…urobi) to separate Cython packages to remove OptionalExtension problems `sage.numerical.backends` depends on very little from Sage. We propose to split out the optional backends (COIN, CPLEX, Gurobi) to separate Cython packages. With this ticket, sagelib no longer has the optional dependency on cbc. Instead, these new packages depend on the `sage` package (i.e., sagelib). This makes it easier to reconfigure when new solvers are installed, as sagelib does not have to be recompiled. By eliminating the use of the optional extensions mechanisms from sagelib, this will also simplify packaging binary distributions. The new packages are on PyPI: {{{ wget -P upstream https://files.pythonhosted.org/packages/29/8a/65fd90a89 0fcfb56166c4071aa7a4fb5b865d313304f60474870f0e89998/sage_numerical_backe nds_cplex-9.0b12.tar.gz wget -P upstream https://files.pythonhosted.org/packages/2c/5c/e1532bb6c de28cf86ebffd408ccb500d7b846bc29bbd1c5e479a2f18acb6/sage_numerical_backe nds_gurobi-9.0b12.tar.gz wget -P upstream https://files.pythonhosted.org/packages/17/f4/308d3e151 d82daf2c58ca26bce157fac31f763b2b60b5173243c09291e0a/sage_numerical_backe nds_coin-9.0b12.tar.gz }}} Development here: - https://github.com/mkoeppe/sage-numerical-backends-cplex - https://github.com/mkoeppe/sage-numerical-backends-coin - https://github.com/mkoeppe/sage-numerical-backends-gurobi See also: - Follow-up: #28920: Move sage optimization backend framework (`sage.numerical.backends`) to separate Cython packages - #26511 - Meta-ticket: Use Python optimization interfaces: PuLP, Pyomo, cylp... - https://groups.google.com/forum/#!topic/sage-packaging/_FLDkqD2X8c URL: https://trac.sagemath.org/28175 Reported by: mkoeppe Ticket author(s): Matthias Koeppe Reviewer(s): Dima Pasechnik
- Loading branch information
Showing
28 changed files
with
183 additions
and
5,892 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,4 @@ | ||
tarball=sage_numerical_backends_coin-VERSION.tar.gz | ||
sha1=5c9708603564c55fa5fddf66ac06f68f4c6145e2 | ||
md5=94ed7c290defc4bf16dcdb0e0c67ca35 | ||
cksum=2355301440 |
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,5 @@ | ||
cbc cysignals $(SAGE_SRC)/sage/numerical/backends/generic_backend.pxd $(SAGE_SRC)/sage/cpython/string.pxd $(SAGE_SRC)/sage/cpython/string_impl.h | $(SAGERUNTIME) setuptools pip cython | ||
|
||
---------- | ||
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. |
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.0b12 |
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,2 @@ | ||
cd src | ||
sage-python23 setup.py test |
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 @@ | ||
if [ "$SAGE_LOCAL" = "" ]; then | ||
echo "SAGE_LOCAL undefined ... exiting"; | ||
echo "Maybe run 'sage -sh'?" | ||
exit 1 | ||
fi | ||
|
||
#Install new version | ||
cd src | ||
|
||
sdh_pip_install . | ||
|
||
if [ $? -ne 0 ]; then | ||
echo "Error installing sage_numerical_backends_coin." | ||
exit 1 | ||
fi |
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 @@ | ||
optional |
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,4 @@ | ||
tarball=sage_numerical_backends_cplex-VERSION.tar.gz | ||
sha1=59b5f344f5b3d2e1f2fb7dcddef208bcc99e710a | ||
md5=f8dcd101092634dac83097a36d64c872 | ||
cksum=2646359461 |
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,5 @@ | ||
cysignals $(SAGE_SRC)/sage/numerical/backends/generic_backend.pxd $(SAGE_SRC)/sage/cpython/string.pxd $(SAGE_SRC)/sage/cpython/string_impl.h | $(SAGERUNTIME) setuptools pip cython | ||
|
||
---------- | ||
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. |
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.0b12 |
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,2 @@ | ||
cd src | ||
sage-python23 setup.py test |
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 @@ | ||
if [ "$SAGE_LOCAL" = "" ]; then | ||
echo "SAGE_LOCAL undefined ... exiting"; | ||
echo "Maybe run 'sage -sh'?" | ||
exit 1 | ||
fi | ||
|
||
#Install new version | ||
cd src | ||
|
||
sdh_pip_install . | ||
|
||
if [ $? -ne 0 ]; then | ||
echo "Error installing sage_numerical_backends_cplex." | ||
exit 1 | ||
fi |
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 @@ | ||
optional |
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,4 @@ | ||
tarball=sage_numerical_backends_gurobi-VERSION.tar.gz | ||
sha1=1a3ea79350cb6bffaff0c785bdb310f4c21475f4 | ||
md5=31e4da1d0538422c370a0149b4da809d | ||
cksum=2128488628 |
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,5 @@ | ||
cysignals $(SAGE_SRC)/sage/numerical/backends/generic_backend.pxd $(SAGE_SRC)/sage/cpython/string.pxd $(SAGE_SRC)/sage/cpython/string_impl.h | $(SAGERUNTIME) setuptools pip cython | ||
|
||
---------- | ||
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. |
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.0b12 |
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,2 @@ | ||
cd src | ||
sage-python23 setup.py test |
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 @@ | ||
if [ "$SAGE_LOCAL" = "" ]; then | ||
echo "SAGE_LOCAL undefined ... exiting"; | ||
echo "Maybe run 'sage -sh'?" | ||
exit 1 | ||
fi | ||
|
||
#Install new version | ||
cd src | ||
|
||
sdh_pip_install . | ||
|
||
if [ $? -ne 0 ]; then | ||
echo "Error installing sage_numerical_backends_gurobi." | ||
exit 1 | ||
fi |
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 @@ | ||
optional |
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
Oops, something went wrong.