From e5c2323cc36d3850f010704e7caecb2524b90366 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel <guilhem.saurel@laas.fr> Date: Tue, 12 May 2020 17:04:23 +0200 Subject: [PATCH] [wip/py-gurobi] initial import --- Makefile | 1 + py-gurobi/DESCR | 1 + py-gurobi/Makefile | 37 +++++++++++++++++++++++++++++++++++++ py-gurobi/PLIST | 24 ++++++++++++++++++++++++ py-gurobi/depend.mk | 29 +++++++++++++++++++++++++++++ py-gurobi/distinfo | 3 +++ 6 files changed, 95 insertions(+) create mode 100644 py-gurobi/DESCR create mode 100644 py-gurobi/Makefile create mode 100644 py-gurobi/PLIST create mode 100644 py-gurobi/depend.mk create mode 100644 py-gurobi/distinfo diff --git a/Makefile b/Makefile index 84b14a2e..e5ad66d0 100644 --- a/Makefile +++ b/Makefile @@ -69,6 +69,7 @@ SUBDIR+= py-dynamic-graph-tutorial SUBDIR+= py-dynamic-graph-v3 SUBDIR+= py-ecos SUBDIR+= py-example-adder +SUBDIR+= py-gurobi SUBDIR+= py-hqp SUBDIR+= py-hpp-affordance-corba SUBDIR+= py-hpp-baxter diff --git a/py-gurobi/DESCR b/py-gurobi/DESCR new file mode 100644 index 00000000..577992b3 --- /dev/null +++ b/py-gurobi/DESCR @@ -0,0 +1 @@ +Gurobi is the most powerful mathematical optimization solver out there. And our team of PhDs is making it better every day. diff --git a/py-gurobi/Makefile b/py-gurobi/Makefile new file mode 100644 index 00000000..d5247164 --- /dev/null +++ b/py-gurobi/Makefile @@ -0,0 +1,37 @@ +# robotpkg Makefile for: optimization/py38-gurobi +# Created: Guilhem Saurel on Tue, 12 May 2020 +# + +NAME= gurobi +VERSION= 9.0.2 +ARCH= linux64 +DISTNAME= ${NAME}${VERSION}_${ARCH} +PKGNAME= ${PKGTAG.python-}${NAME}-${VERSION} +MASTER_SITES= https://packages.gurobi.com/9.0/ + +WRKSRC= ${WRKDIR}/${NAME}$(subst .,,${VERSION})/${ARCH} + +CATEGORIES= optimization +HOMEPAGE= https://www.gurobi.com/ +COMMENT= The Fastest Solver +MAINTAINER= gsaurel@laas.fr + +PYDISTUTILSPKG= yes +PYSETUPINSTALLARGS+= --single-version-externally-managed --root=/ +MAKE_ENV+= PYTHONPATH=${PREFIX}/${PYTHON_SITELIB} +PYTHON_SELF_CONFLICT= yes + +post-install: + ${RM} -rf ${WRKSRC}/bin/python* ${WRKSRC}/lib/python* ${WRKSRC}/lib/rootcert.pem; \ + ${RUN} ${LIBTOOL} --mode=install install -d \ + ${DESTDIR}${PREFIX}/{bin,lib}; \ + ${RUN} ${LIBTOOL} --mode=install install \ + ${WRKSRC}/lib/* ${DESTDIR}${PREFIX}/lib; \ + ${RUN} ${LIBTOOL} --mode=install install \ + ${WRKSRC}/bin/* ${DESTDIR}${PREFIX}/bin + +include ../../pkgtools/libtool/depend.mk +include ../../mk/sysdep/python.mk +include ../../mk/language/c.mk +include ../../mk/language/c++.mk +include ../../mk/robotpkg.mk diff --git a/py-gurobi/PLIST b/py-gurobi/PLIST new file mode 100644 index 00000000..60adb498 --- /dev/null +++ b/py-gurobi/PLIST @@ -0,0 +1,24 @@ +@comment Tue May 12 16:52:25 CEST 2020 +bin/grb_ts +bin/grbcluster +bin/grbgetkey +bin/grbprobe +bin/grbtune +bin/gurobi.env +bin/gurobi.sh +bin/gurobi_cl +lib/gurobi-javadoc.jar +lib/gurobi.jar +lib/gurobi.py +lib/gurobi90.netstandard20.dll +lib/gurobi90.netstandard20.xml +lib/libGurobiJni90.so +lib/libgurobi.so.${PKGVERSION} +lib/libgurobi90.so +lib/libgurobi90_light.so +lib/libgurobi_c++.a +lib/libgurobi_g++4.2.a +lib/libgurobi_g++5.2.a +${PYTHON_SITELIB}/gurobipy-${PKGVERSION}-py${PYTHON_VERSION}.egg-info +${PYTHON_SITELIB}/gurobipy/__init__.py +${PYTHON_SITELIB}/gurobipy/gurobipy.so diff --git a/py-gurobi/depend.mk b/py-gurobi/depend.mk new file mode 100644 index 00000000..8e97effd --- /dev/null +++ b/py-gurobi/depend.mk @@ -0,0 +1,29 @@ +# robotpkg depend.mk for: optimization/py38-gurobi +# Created: Guilhem Saurel on Tue, 12 May 2020 +# + +DEPEND_DEPTH:= ${DEPEND_DEPTH}+ +PY_GUROBI_DEPEND_MK:= ${PY_GUROBI_DEPEND_MK}+ + +ifeq (+,$(DEPEND_DEPTH)) +DEPEND_PKG+= py-gurobi +endif + +ifeq (+,$(PY_GUROBI_DEPEND_MK)) # ---------------------------------------- + +include ../../mk/sysdep/python.mk + +PREFER.py-gurobi?= robotpkg + +DEPEND_USE+= py-gurobi + +DEPEND_ABI.py-gurobi?= ${PKGTAG.python-}gurobi>=9.0.2 +DEPEND_DIR.py-gurobi?= ../../wip/py-gurobi + +SYSTEM_SEARCH.py-gurobi= \ + 'lib/libgurobi90.so' \ + '${PYTHON_SYSLIBSEARCH}/gurobipy/__init__.py' + +endif # PY_GUROBI_DEPEND_MK ---------------------------------------------- + +DEPEND_DEPTH:= ${DEPEND_DEPTH:+=} diff --git a/py-gurobi/distinfo b/py-gurobi/distinfo new file mode 100644 index 00000000..c4ca3a2f --- /dev/null +++ b/py-gurobi/distinfo @@ -0,0 +1,3 @@ +SHA1 (gurobi9.0.2_linux64.tar.gz) = 7c14f0b97161af9c014282538f0ad20ca8b18711 +RMD160 (gurobi9.0.2_linux64.tar.gz) = 5511ddaacf5d09c1d4a20296a43abd7b4d845453 +Size (gurobi9.0.2_linux64.tar.gz) = 80732264 bytes -- GitLab