Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 230457 - new ebuild for dev-python/cvxopt
Summary: new ebuild for dev-python/cvxopt
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Science Mathematics related packages
URL: http://abel.ee.ucla.edu/cvxopt
Whiteboard: [sunrise-overlay]
Keywords: EBUILD, InOverlay
Depends on:
Blocks: 201321
  Show dependency tree
 
Reported: 2008-07-02 05:07 UTC by François Bissey
Modified: 2012-01-06 20:32 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild for cvxopt (cvxopt-1.0.ebuild,1008 bytes, text/plain)
2008-07-02 05:08 UTC, François Bissey
Details
ebuild for cvxopt-1.1.1 (cvxopt-1.1.1.ebuild,1016 bytes, text/plain)
2009-08-10 20:45 UTC, Jean-Francis Roy
Details
Ebuild for CVXOPT-1.1.2-r1 (cvxopt-1.1.2-r1.ebuild,933 bytes, text/plain)
2010-08-24 01:02 UTC, Jean-Francis Roy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description François Bissey 2008-07-02 05:07:42 UTC
An ebuild for cvxopt which provides:
"A Python Package for Convex Optimization"
This is a sage dependency. I may have to provide an older version
in the future as sage is stuck v-0.9.5 for licensing reasons (GPL2 vs
GPL3) for now. But I hope the API is compatible.

Reproducible: Always
Comment 1 François Bissey 2008-07-02 05:08:12 UTC
Created attachment 159229 [details]
ebuild for cvxopt
Comment 2 Jean-Francis Roy 2009-08-10 20:45:43 UTC
Created attachment 200867 [details]
ebuild for cvxopt-1.1.1
Comment 3 Jean-Francis Roy 2009-08-10 20:46:52 UTC
New ebuild for version 1.1.1.

Started from the already attached cvxopt-1.0.ebuild, changed the name, the download url and a typo for sys-libs/gsl dependency.
Comment 4 Jean-Francis Roy 2009-10-21 14:44:17 UTC
This ebuild is now in the sunrise overlay. You can find it at:
http://overlays.gentoo.org/proj/sunrise/browser/sunrise/dev-python/cvxopt/

The following fields should be changed by bug reporter or wrangler:

Status Whiteboard: sunrise-overlay
Keywords: EBUILD, InOverlay
Comment 5 Jean-Francis Roy 2010-03-23 02:56:53 UTC
Hi!

I just heard of the proxy-maintainer title from http://hwoarang.silverarrow.org/?p=555

I am interested to become the proxy-maintainer of this package.

Please let me know if this is possible, and how to proceed. :-)

This message has also been posted on bug 289363
Comment 6 Jean-Francis Roy 2010-08-24 01:02:12 UTC
Created attachment 244319 [details]
Ebuild for CVXOPT-1.1.2-r1
Comment 7 François Bissey 2010-08-24 03:03:33 UTC
(In reply to comment #6)
> Created an attachment (id=244319) [details]
> Ebuild for CVXOPT-1.1.2-r1
> 
I Jean-Francis,

how come I don't appear to be cc on my own bugs?
Anyway we have something slightly better in the sage-on-gentoo
overlay (available from layman). You are welcome to get it and 
become a proxy maintainer for it as far as we are concerned.
We would like very much it going into the main tree.
Comment 8 François Bissey 2010-08-24 03:07:02 UTC
Better is relative. stuff from both should be merged actually.
Comment 9 Jean-Francis Roy 2010-08-24 03:57:09 UTC
That's strange that you're not CC'd on your own bug :-).

By "better", do you mean that you use Sage (already heard of it, didn't read about it yet) instead of CVXOPT for convex optimization?

I'll take a look at it for sure, thanks for the info!
Comment 10 François Bissey 2010-08-24 04:05:59 UTC
(In reply to comment #9)
> That's strange that you're not CC'd on your own bug :-).
> 
> By "better", do you mean that you use Sage (already heard of it, didn't read
> about it yet) instead of CVXOPT for convex optimization?
> 
> I'll take a look at it for sure, thanks for the info!
> 

No we use cvxopt as a sage dependency so we have an ebuild. In some ways
ours is "simpler", but yours use more stuff from distutils eclass so
potentially has a better future, although I'll have closer look as some
stuff seems redundant.
The sticky point is we have a patch for an issue that has been fixed upstream
but not released yet.
see:
http://trac.sagemath.org/sage_trac/ticket/6456#comment:82
Comment 11 Jean-Francis Roy 2010-08-24 19:58:40 UTC
Well, the ebuild you see for cvxopt-1.1.1 was mine (I took yours and modified it with the comments I received in the Sunrise overlay IRC channel), but the ebuild for cvxopt-1.1.2-r1 was modified by another guys from the Sunrise overlay. They have a reviewing process by Gentoo developpers so the ebuilds accepted in Sunrise are kind of "clean".

You may want to get your ebuild approved by Sunrise guys (at least the patch) so we could use an unified ebuild. :-)
Comment 12 François Bissey 2010-10-13 09:25:28 UTC
(In reply to comment #11)
> Well, the ebuild you see for cvxopt-1.1.1 was mine (I took yours and modified
> it with the comments I received in the Sunrise overlay IRC channel), but the
> ebuild for cvxopt-1.1.2-r1 was modified by another guys from the Sunrise
> overlay. They have a reviewing process by Gentoo developpers so the ebuilds
> accepted in Sunrise are kind of "clean".
> 
> You may want to get your ebuild approved by Sunrise guys (at least the patch)
> so we could use an unified ebuild. :-)
> 

Sorry to have been silent so long. I will definitely adopt your ebuild in our overlay. cvxopt-1.1.3 is out and we'll probably need it in short order.
Comment 13 Jean-Francis Roy 2010-10-13 16:05:50 UTC
No problem :-). Good luck with the Sage overlay, seems to be a lot of work to maintain!
Comment 14 François Bissey 2011-06-20 02:03:09 UTC
The current ebuild (both overlays) doesn't use pkg-config to set blas and lapack which causes problems when using bicatali's overlay. 
* Building of dev-python/cvxopt-1.1.3 with CPython 2.7...
python2.7 setup.py build -b build
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/cvxopt
copying python/modeling.py -> build/lib.linux-x86_64-2.7/cvxopt
copying python/misc.py -> build/lib.linux-x86_64-2.7/cvxopt
copying python/info.py -> build/lib.linux-x86_64-2.7/cvxopt
copying python/solvers.py -> build/lib.linux-x86_64-2.7/cvxopt
copying python/printing.py -> build/lib.linux-x86_64-2.7/cvxopt
copying python/msk.py -> build/lib.linux-x86_64-2.7/cvxopt
copying python/coneprog.py -> build/lib.linux-x86_64-2.7/cvxopt
copying python/__init__.py -> build/lib.linux-x86_64-2.7/cvxopt
copying python/cvxprog.py -> build/lib.linux-x86_64-2.7/cvxopt
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building 'gsl' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/C
x86_64-pc-linux-gnu-gcc -pthread -O2 -march=native -fomit-frame-pointer -pipe -fno-strict-aliasing -floop-interchange -floop-strip-mine -floop-block -fPIC -I/usr/include/gsl -I/usr/include/python2.7 -c C/gsl.c -o build/temp.linux-x86_64-2.7/C/gsl.o
x86_64-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,--as-needed -O2 -march=native -fomit-frame-pointer -pipe -fno-strict-aliasing -floop-interchange -floop-strip-mine -floop-block build/temp.linux-x86_64-2.7/C/gsl.o -L/usr/lib -L/usr/lib64 -lm -lgsl -lblas -lpython2.7 -o build/lib.linux-x86_64-2.7/cvxopt/gsl.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lblas
collect2: ld returned 1 exit status
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1
 * ERROR: dev-python/cvxopt-1.1.3 failed (compile phase):
Comment 15 François Bissey 2011-06-20 04:48:27 UTC
I have got a solution in the sage-on-gentoo overlay. I will probably push it to the science overlay tomorrow if nothing pops up and wreck it.
Comment 16 Jean-Francis Roy 2011-06-20 20:50:05 UTC
Thanks for letting me know that, I will check your ebuild in the sage-on-gentoo overlay. I didn't bump anything in Sunrise for a while, I don't even remember the procedure :-P. I maintain my own overlay for the stuff I use... Maybe I should give a try to the science overlay.
Comment 17 François Bissey 2011-06-21 00:01:24 UTC
Pushed to the science overlay. Has been tested with a few configurations in sage-on-gentoo both with tree and bicatali's overlay. No issues.
Comment 18 Jean-Francis Roy 2011-08-23 17:52:58 UTC
François,

The cvxopt ebuild from sci overlay fails on one of my machines. The problem is the sed command in the ebuild, it leaves a trailing ' at the end when -lpthread is the last in the pkgconfig list.

Removing -lpthread first resolves the issue : 

-e 's/-lpthread//g' \
-e 's/^-l//' \
-e "s/ -l/\',\'/g" \
-e "s:  ::")\
Comment 19 Sébastien Fabbro (RETIRED) gentoo-dev 2012-01-06 20:32:55 UTC
now in cvs. thanks!